-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Regression in 1.61 error message for crate not found in local registry #10682
Comments
Bisection suggests regression happened in the 2022-03-20 nightly, and specifically with rust-lang/rust#95103. |
I think I found it. That commit changed (in part) this: cargo/src/cargo/sources/registry/index.rs Lines 631 to 645 in 82093ad
to this cargo/src/cargo/sources/registry/index.rs Lines 634 to 647 in f12f025
Note how we now error immediately if |
And that change carried over through #10482, which doesn't map a local registry |
Fix in #10683 |
Restore proper error for crate not in local reg Fixes #10682.
Problem
The error message that's presented when a crate doesn't exist in a local registry has regressed from 1.60 to 1.61.
Steps
I expected to see (and did in 1.60):
Instead, with 1.61, I see:
Possible Solution(s)
I'm not entirely sure how this change in behavior arose. I think it may be related to #10482 and how we don't translate a
ErrorKind::NotFound
fromread_bytes
intoLoadResponse::NotFound
here:cargo/src/cargo/sources/registry/local.rs
Lines 57 to 60 in f624095
cc @arlosi
Notes
No response
Version
The text was updated successfully, but these errors were encountered: