fix(Justfile): fmt via external find to not follow result symlink

This commit is contained in:
Ryan Yin
2026-08-24 00:33:36 +08:00
parent c33b68c7bb
commit 6e32a3ef27
+2 -1
View File
@@ -83,7 +83,8 @@ nix-upgrade:
[group('nix')]
fmt:
# format the nix files in this repo
ls **/*.nix | each { |it| nixfmt $it.name }
# (use external find so symlinked dirs like the `result` build output are not followed)
^find . -name '*.nix' -not -path './.git/*' | lines | each { |it| nixfmt $it | ignore }
# Show all the auto gc roots in the nix store
[group('nix')]