Skip to content

Commit

Permalink
Use cabal.project in cache key calculation
Browse files Browse the repository at this point in the history
Cabal's freeze file doesn't include version hashes, just version
numbers. This means that updates to dependencies specified in
`cabal.project`'s `source-repository-package` field don't get taken into
account properly.

This issue doesn't affect Stack, as it only relies on version hashes in
the first place.
  • Loading branch information
martijnbastiaan committed Sep 12, 2023
1 parent 111d42c commit 18c8b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ jobs:
dist-newstyle
~/.cabal/store
key: ${{ matrix.ghc }}-${{ hashFiles('frozen') }}
key: ${{ matrix.ghc }}-${{ hashFiles('frozen', 'cabal.project') }}
restore-keys: ${{ matrix.ghc }}-

- name: Build Clash
Expand Down

0 comments on commit 18c8b1c

Please sign in to comment.