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
I set up treefmt with google/yamlfmt, and when running treefmt --fail-on-change, encountered unexpected behavior.
There seems to be no unformatted files, but treefmt reports some files changed and fails in most cases.
Sometimes I can get correct reports (0 files changed) and the command not fails in some reason.
Describe the bug
I set up treefmt with google/yamlfmt, and when running
treefmt --fail-on-change
, encountered unexpected behavior.There seems to be no unformatted files, but treefmt reports some files changed and fails in most cases.
Sometimes I can get correct reports (
0 files changed
) and the command not fails in some reason.To Reproduce
Prepare some unformatted YAML files and set up yamlfmt in
treefmt.toml
like https://github.com/nokazn/treefmt-yamlfmt-repro-279nix develop --command treefmt --no-cache
1 files changed
message is reported and the unformatted files are formattednix develop --command treefmt --no-cache
again1 files changed
message is shown again and nothing seems to happen to the YAML filesExpected behavior
In step 4,
0 files changed
message is shown. (And never fails with--fail-on-change
)System information
Additional context
N/A
The text was updated successfully, but these errors were encountered: