We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac9fe0c commit 2ba9bebCopy full SHA for 2ba9beb
1 file changed
.github/workflows/nix.yml
@@ -31,7 +31,13 @@ jobs:
31
id: cache-check
32
run: |
33
set -euo pipefail
34
- if nix path-info --store "https://graphite-dev.cachix.org" .#devShells.x86_64-linux.default >/dev/null 2>&1; then
+
35
+ out_path="$(nix eval --raw .#devShells.x86_64-linux.default.outPath)"
36
+ out_name="$(basename "$out_path")"
37
+ out_hash="${out_name%%-*}"
38
39
+ if curl --fail --silent --show-error \
40
+ "$CACHE_URL/${out_hash}.narinfo" >/dev/null; then
41
echo "cached=true" >> "$GITHUB_OUTPUT"
42
else
43
echo "cached=false" >> "$GITHUB_OUTPUT"
0 commit comments