cargo add
wrongly autocorrects crates when vendored
#14309
Labels
C-bug
Category: bug
Command-add
S-needs-info
Status: Needs more info, such as a reproduction or more background for a feature request.
Problem
When using
cargo add
while vendored it 'autocorrects' the crate name, even for quite far string distances and for crates that are included in the vendored directory!(I also think that the distance it corrects to, is too far for such a short string. Given that adding a crate to your Cargo.toml is quite consequential wrt to access rights, having an unknown one being installed is not ideal. Especially if not vendored.)
A quick demonstration:
This confused me for a moment, when I then tried 'cargo update' it finally dawned on me that it was my vendoring of packages that caused this odd output.
Steps
cargo vendor
).cargo/
filecargo add
for a crate that existsPossible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: