-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
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
cargo-machete searches .git directory and may find bad toml files #136
Comments
Thanks for opening an issue. If you run |
It doesn't seem like there is an
I'm using the latest version as packaged in nixpkgs, and it doesn't look like there's a newer release here, is there?
The flag |
Ah, indeed! I tried with git main and the problem does not occur with that flag, thank you! |
I think this should be the default. I just ran into this with some |
Right, I'll make it the default and add an escape hatch for users who don't want that. Thanks for your feedback! |
I've got a project that uses renovate to among others update the
Cargo.toml
files. Because there are multiple such files it updates, the specific branch may be called egrenovate/lock-file-maintenance-dummy-worker/Cargo.toml
, which is admittedly a bit of a mouthful, but that's not the point here.That means that in my local project, that ref is known:
When I now run machete, it tries to search that file, having the expected file name:
The other warnings look correct to me, and this isn't a huge issue insofar as the exit code is still 0.
It's still kind of annoying.
There are some possible approaches to solving this:
.git
or a similar ignore systemgit status
The text was updated successfully, but these errors were encountered: