From 6e32a3ef27c8843efd995be10ebf0d49077f82d3 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 24 Aug 2026 00:33:36 +0800 Subject: [PATCH] fix(Justfile): fmt via external find to not follow result symlink --- Justfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Justfile b/Justfile index 1ac146f9..91ac7ae9 100644 --- a/Justfile +++ b/Justfile @@ -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')]