We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
If you use --no-cache, the option --fail-on-change won't have any effect.
--no-cache
--fail-on-change
To Reproduce
Steps to reproduce the behavior:
git init
no-cache-fail-on-change-bug.yaml
key1: value1 key2: value2 key3: value3
git add no-cache-fail-on-change-bug.yaml
yamlfmt
treefmt --no-cache --fail-on-change
git checkout no-cache-fail-on-change-bug.yaml
treefmt --fail-on-change
treefmt: error: unexpected changes detected, --fail-on-change is enabled
Expected behavior When --fail-on-change is used together with --no-cache it should work.
System information
Linux
$ treefmt --version treefmt v2.0.2
The text was updated successfully, but these errors were encountered:
@terlar yeah looks like #330 broke this, I'm having a look
Sorry, something went wrong.
@terlar I have a fix inbound #344
I'll probably cut a new release over the weekend, as there will be a few fixes and improvements.
In the meantime, you can pull in the branch as a flake input and override the package being used.
33a7bba
I can confirm that this works now, thank you for the quick turnaround
nil pointer dereference
brianmcgee
Successfully merging a pull request may close this issue.
Describe the bug
If you use
--no-cache
, the option--fail-on-change
won't have any effect.To Reproduce
Steps to reproduce the behavior:
git init
no-cache-fail-on-change-bug.yaml
:git add no-cache-fail-on-change-bug.yaml
yamlfmt
treefmt --no-cache --fail-on-change
git checkout no-cache-fail-on-change-bug.yaml
treefmt --fail-on-change
treefmt: error: unexpected changes detected, --fail-on-change is enabled
Expected behavior
When
--fail-on-change
is used together with--no-cache
it should work.System information
Linux
The text was updated successfully, but these errors were encountered: