Skip to content

Commit 41723f7

Browse files
hyperpolymathclaude
andcommitted
fix(just): guard guix recipes behind [ -f guix.scm ]
guix-shell / guix-build referenced guix.scm, but only .guix-channel exists in the tree (the channel pin) — so both recipes errored with a file-not-found. Gate them like the existing nix-shell recipe so they degrade to a friendly message when guix.scm is absent. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 96d67b3 commit 41723f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,11 @@ state-phase:
484484
485485
# Enter Guix development shell (primary)
486486
guix-shell:
487-
guix shell -D -f guix.scm
487+
@if [ -f "guix.scm" ]; then guix shell -D -f guix.scm; else echo "No guix.scm (channel pin lives in .guix-channel)"; fi
488488
489489
# Build with Guix
490490
guix-build:
491-
guix build -f guix.scm
491+
@if [ -f "guix.scm" ]; then guix build -f guix.scm; else echo "No guix.scm (channel pin lives in .guix-channel)"; fi
492492
493493
# Enter Nix development shell (fallback)
494494
nix-shell:

0 commit comments

Comments
 (0)