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
After upgrading to rust 1.67.0 clippy --fix now fails if you have any untracked files in your git repository. I now have to pass the --allow-dirty flag to use clippy --fix. I didn't have to do this in rust 1.66.0.
If this is a deliberate change, I suggest adding an --allow-untracked flag to clippy --fix so that we can get the old behavior back.
Reproducer
reproduce:
cargo new foo
cd foo
git add .
git commit -m "Initial commit"
touch bar.txt
cargo clippy --fix
I expected to see this happen: Success
Instead, this happened:
error: the working directory of this package has uncommitted changes, and `cargo fix` can potentially perform destructive changes; if you'd like to suppress this error pass `--allow-dirty`, `--allow-staged`, or commit the changes to these files:
* bar.txt (dirty)
Summary
After upgrading to rust 1.67.0
clippy --fix
now fails if you have any untracked files in your git repository. I now have to pass the--allow-dirty
flag to useclippy --fix
. I didn't have to do this in rust 1.66.0.If this is a deliberate change, I suggest adding an
--allow-untracked
flag toclippy --fix
so that we can get the old behavior back.Reproducer
reproduce:
I expected to see this happen: Success
Instead, this happened:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: