Skip to content

Remove restore-keys from caching #349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2025
Merged

Conversation

lbonsey1
Copy link
Contributor

As mentioned in open issue #319, the restore-keys specified within action.yaml leads to some unpredictable behaviour; a pub get cache-miss could result in a different hashed lock cache to be returned instead. In our experience, this has caused pipelines to fail, as the codebase is relying on packages which are not present in the pub cache. As @rolandmosimann recommends, I feel this behaviour should be removed, to fix this problem.

As a result, this PR removes the misleading restore-key on pub get caching, as well as the unnecessary declaration of a restore-key matching exactly the key. Let me know if you've got any questions 😄

@lbonsey1 lbonsey1 changed the title fix: remove restore keys Remove misleading restore-keys from caching Feb 20, 2025
@lbonsey1 lbonsey1 changed the title Remove misleading restore-keys from caching Remove restore-keys from caching Feb 20, 2025
@alexdempster44
Copy link

@bartekpacia could you have a look at this please? It would be nice to get it merged in.

sophie-maney added a commit to FurryApp/flutter-action that referenced this pull request Mar 13, 2025
@bartekpacia bartekpacia merged commit 1177d93 into subosito:main Mar 24, 2025
81 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants