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
cargo install with a specific version that has been yanked gives a slightly confusing error:
> cargo install cargo-tarpaulin --version 0.10.1
error: could not find `cargo-tarpaulin` in registry `https://github.com/rust-lang/crates.io-index` with version `=0.10.1`
I think maybe it would be good to at least mention that it is yanked.
This is similar to #4260, where specified as a dependency also says "no matching version". In general, the yanked crates become invisible to resolution, and I'm wondering if maybe it should at least provide a hint.
The text was updated successfully, but these errors were encountered:
This is going to be hard to fix. The code literally filters out yanked crates. So the resolver code has know way to know that the yanked crates existit. This is done that way because the resolver is already too complicated and hard to understand, it has to intrinsically solve NP-Hard problems. So a O(n) filter is a grate win on the code complexity budget.
The one thought I had while writing this up is that in making the error message we re-query the registry several times to generate the versions found section. Maybe we can have that query include yanked versions, somehow.
cargo install
with a specific version that has been yanked gives a slightly confusing error:I think maybe it would be good to at least mention that it is yanked.
This is similar to #4260, where specified as a dependency also says "no matching version". In general, the yanked crates become invisible to resolution, and I'm wondering if maybe it should at least provide a hint.
The text was updated successfully, but these errors were encountered: