Skip to content

Commit

Permalink
Merge pull request #481 from IntersectMBO/newhoggy/exclude-non-global…
Browse files Browse the repository at this point in the history
…-dependencies-from-cache-key-computation

Exclude non-global dependencies from cache-key computation
  • Loading branch information
newhoggy authored Mar 16, 2024
2 parents 1fb34e9 + 38f3b2d commit 299fa40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
# The tests call out to msys2 commands. We generally do not want to mix toolchains, so
# we are very deliberate about only adding msys64 to the path where absolutely necessary.
${{ (runner.os == 'Windows' && '$env:PATH=("C:\msys64\mingw64\bin;{0}" -f $env:PATH)') || '' }}
cat dist-newstyle/cache/plan.json | jq -r '."install-plan"[].id' | sort | uniq > dependencies.txt
cat dist-newstyle/cache/plan.json | jq -r '."install-plan"[] | select(.style != "local") | .id' | sort | uniq > dependencies.txt
# From the dependency list we restore the cached dependencies.
# We use the hash of `dependencies.txt` as part of the cache key because that will be stable
Expand Down

0 comments on commit 299fa40

Please sign in to comment.