Skip to content
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

Allow a cache restore when stack.yaml changes #29

Merged
merged 3 commits into from
Nov 13, 2023
Merged

Conversation

chris-martin
Copy link
Contributor

Using the stack.yaml contents as the sole cache key for dependencies makes sense when the vast majority of changes to stack.yaml are resolver upgrades that are going to necessitate rebuilding everything. It makes less sense when we're changing stack.yaml just to do an upgrade of a single dependency. For that sort of change, CI can make use of a previous cached dependency set and save (in the case of megarepo/backend) around an hour of rebuilding.

This change allows a build to restore any dependency cache that is for the same GHC version.

@chris-martin chris-martin merged commit 5e40955 into main Nov 13, 2023
26 checks passed
@chris-martin chris-martin deleted the chris/cache-saving branch November 13, 2023 22:47
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.

2 participants