This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
nix
Watch
2
Star
0
Fork
0
You've already forked nix
mirror of
https://github.com/NixOS/nix.git
synced
2024-11-25 16:23:02 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
6b0aceedc5
nix
/
tests
/
functional
/
fmt.simple.sh
3 lines
52 B
Bash
Raw
Normal View
History
Unescape
Escape
fix(nix fmt): remove the default "." argument When `nix fmt` is called without an argument, Nix appends the "." argument before calling the formatter. The comment in the code is: > Format the current flake out of the box This also happens when formatting sub-folders. This means that the formatter is now unable to distinguish, as an interface, whether the "." argument is coming from the flake or the user's intent to format the current folder. This decision should be up to the formatter. Treefmt, for example, will automatically look up the project's root and format all the files. This is the desired behaviour. But because the "." argument is passed, it cannot function as expected.
2024-09-05 08:29:48 +00:00
#!/usr/bin/env bash
echo
"
Formatting(
${#
}
):
"
"
${
@
}
"
Reference in New Issue
Copy Permalink