From 38f3b2d6168c0b34626d8106c86fc863a7ddf46d Mon Sep 17 00:00:00 2001 From: John Ky Date: Sat, 16 Mar 2024 01:48:25 +1100 Subject: [PATCH] Exclude local dependencies from cache-key computation --- .github/workflows/haskell.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index 6d759881e5..d16ca922b9 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -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