Skip to content

Commit

Permalink
Use cabal.project in cache invalidation
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.

(taken from https://github.com/clash-lang/clash-compiler/, including
commit detail message)
  • Loading branch information
DigitalBrains1 committed Sep 12, 2023
1 parent 9386c4d commit 65ef8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key:
${{ runner.os }}-ghc-${{ matrix.ghc }}-${{ hashFiles('frozen',
'cabal.project.local') }}
'cabal.project', 'cabal.project.local') }}
restore-keys: |
${{ runner.os }}-ghc-${{ matrix.ghc }}-
Expand Down

0 comments on commit 65ef8c1

Please sign in to comment.