Jonas Chevalier
2265536e85
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.
Upstream-PR: https://github.com/nixos/nix/pull/11438
Change-Id:
|
||
---|---|---|
.. | ||
.gitkeep | ||
allowsubstitutes-errors.md | ||
deprecated-features.md | ||
http-proxy-for-s3.md | ||
nix-fmt-default-argument.md | ||
relative-and-tilde-paths-in-config.md |