mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-08-27 05:23:56 +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')]
|
[group('nix')]
|
||||||
fmt:
|
fmt:
|
||||||
# format the nix files in this repo
|
# 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
|
# Show all the auto gc roots in the nix store
|
||||||
[group('nix')]
|
[group('nix')]
|
||||||
|
|||||||
Reference in New Issue
Block a user