You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running treefmt-nix with a list of files to format, only the first file is considered while any remaining files are ignored. This only happens in a Git repository.
It works when passing --walk filesystem as an option.
To Reproduce
Steps to reproduce the behavior:
Ensure you are in a Git repository.
Set up treefmt-nix with these (intentionally unformatted) files:
flake.nix with a default app to run the treefmt-nix wrapper:
Thanks for your work on treefmt.
Describe the bug
When running
treefmt-nix
with a list of files to format, only the first file is considered while any remaining files are ignored. This only happens in a Git repository.It works when passing
--walk filesystem
as an option.To Reproduce
Steps to reproduce the behavior:
Ensure you are in a Git repository.
Set up
treefmt-nix
with these (intentionally unformatted) files:flake.nix
with a default app to run thetreefmt-nix
wrapper:treefmt.nix
:Run
treefmt-nix
against the Nix files withNow only
flake.nix
is formatted buttreefmt.nix
is ignored.Expected behavior
Both files should be formatted.
System information
Ubuntu 24.04.1 LTS with Nix 2.24.9.
flake.lock
:Additional context
As a workaround, run
The text was updated successfully, but these errors were encountered: