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

Fix freeze cache key correctly #2560

Merged
merged 5 commits into from
Jan 3, 2022
Merged

Conversation

jneira
Copy link
Member

@jneira jneira commented Jan 2, 2022

  • The problem with the freeze file in 9.2.1 was not the use of allow-newer: cabal freeze use the same solver as cabal build and it takes in account the same config. The problem was cabal freeze was being done before cabal update so it cant take in account the head.hackage updates
  • So remove the freeze file as i did in Remove cabal.project.freeze files in workflows after computing the cache key #2552 is not needed but move the cabal update step

@jneira jneira force-pushed the fix-freeze-cache-key branch from 0f560a5 to f6a63a8 Compare January 2, 2022 17:28
@michaelpj michaelpj added the merge me Label to trigger pull request merge label Jan 2, 2022
Comment on lines -115 to +121
key: ${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-${{ env.INDEX_STATE }}-${{ hashFiles('cabal.project.freeze') }}
key: ${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-${{ env.INDEX_STATE }}-${{ steps.compute-cache-key.outputs.value }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for catching this.

Copy link
Collaborator

@Anton-Latukha Anton-Latukha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The case is understandable.

@mergify mergify bot merged commit 1849a87 into haskell:master Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants