-
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
cargo occasionally fails to download any packages due to "no hash listed for" #1355
Comments
Persists even when |
Renaming my repo local Contents of my repo local
|
I'm running into this as well. |
This might be completely off track, but: In my case, some of the paths in the .cargo/config of the package I was building also had .cargo/config's in them, which also had some paths set. |
I only have one config in the directory all of my cargo packages live, so I don't think it's that. |
I am now seeing the same issue: ➜ yup-oauth2 git:(next) ✗ cargo test --verbose
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading open v1.0.1
Unable to get packages from source
Caused by:
Failed to download package `open v1.0.1` from https://crates.io/api/v1/crates/open/1.0.1/download
Caused by:
no hash listed for open v1.0.1 It's new to me, and just occurred after publishing Reproducing it should be easy by just adding |
I'm also seeing this with https://crates.io/api/v1/crates/router/0.0.9/download returns an HTML error page with the message "Oops, that route doesn't exist!". That also happens with the other download URLs in the comments above. |
Are there some example crates I could test out building to reproduce this? I haven't seen this yet and have been unable to reproduce locally. |
Unfortunately, I also can't reproduce this anymore, even when setting the version of open to 1.0.1, which triggered the error in my example. |
I also haven't seen this error recently. Like an earlier comment mentioned, I too had a number of overrides in |
I've encountered this situation as well. Here is the situation:
I added a local override for I ran |
The hashes would occasionally disappear when the main package registry overwrote a previous registry source, so this just adds logic to load hashes if they're missing. Closes rust-lang#1355
I just hit this bug again. I did the following after leaving my project untouched for a few days:
This failed with the following output:
This is the I have the following in
This directory contains sfackler/rust-postgres-array@3216821. When I removed |
The hashes would occasionally disappear when the main package registry overwrote a previous registry source, so this just adds logic to load hashes if they're missing. Closes #1355
When
cargo build
is re-run, various packages fail in the same way (typically a different one each time).An example:
The text was updated successfully, but these errors were encountered: