lix/doc/manual/rl-next
Jonas Chevalier 2265536e85 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.

Upstream-PR: https://github.com/nixos/nix/pull/11438

Change-Id: I60fb6b3ed4ec1b24f81b5f0d76c0be98470817ce
2024-09-26 14:32:29 -07:00
..
.gitkeep release: release notes for 2.90.0 2024-06-15 18:46:18 -07:00
allowsubstitutes-errors.md fix: good errors for failures caused by allowSubstitutes 2024-08-23 17:49:15 -07:00
deprecated-features.md libexpr: Soft-deprecate ancient let syntax 2024-08-21 12:59:03 +02:00
http-proxy-for-s3.md fix: use http proxy for s3 access 2024-08-23 13:23:33 -07:00
nix-fmt-default-argument.md fix(nix fmt): remove the default "." argument 2024-09-26 14:32:29 -07:00
relative-and-tilde-paths-in-config.md Support relative and ~/ paths in config settings 2024-08-25 15:54:22 -07:00