mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-08-26 13:04:01 +02:00
fix(Justfile): fmt via external find to not follow result symlink
This commit is contained in:
@@ -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')]
|
||||
|
||||
Reference in New Issue
Block a user