-
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 build
hangs forever on updating registry.
#4346
Comments
This is not a system-wide phenomena. |
This is likely an instance of #4066 where the crate graph cannot be resolved and it's just taking cargo too long to inform the caller. I'd have to dig in though to confirm. |
Is there any temporary workaround that I can use for now? It's completely stopping my progress. |
Ok looks like you're hitting a combination of #4066 and #4127. Because of #4127 resolution fails and because of #4066 it'll take probably days to fail. What's happening here is that your lockfile indicates it wants libc 0.2.14 but you're trying to add a dependency on You can fix this by running |
Thank you, its working now! |
For me running
and then nothing else happens. Even if I add the |
Nevermind, it seems that |
I'm having a problem like that. When cargo updates in my computer it works fine. When cargo updates inside a Docker container, it doesn't work. I think you might implement a visual signal of how cargo is running. Like apt, pip or nuget, the user can see what's going on. |
for me when running this I get an endless stream of this
repeated over and over when I run |
Change cargo source in ~/.cargo/config. This works for me. |
I have a project (you can find it here: https://github.com/christopherdumas/guile-rs/tree/new-bindings) that causes cargo to hang indefinitely at "updating registry" while using 99.2% of my CPU. I have tried reinstalling cargo, updating Rust, etc. Nothing seems to change this behavior.
Here are the messages it prints before hanging:
I left it running for a total of 6 hours at one point.
I'm running
rustc 1.20.0-nightly (69c65d296 2017-06-28)
andcargo 0.21.0-nightly (abf01e1ed 2017-06-25)
.The text was updated successfully, but these errors were encountered: