-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 hangs #2416
Comments
What versions of things are you using, and what platform are you on? I just made a new project and it worked for me. |
I think that this is a dupe of #2090, but thanks for the report! |
The best way to fix this currently (not a great solution long term of course) is:
|
Thanks for the comments folks. Linux, nightly-2016-01-28. I'm sure I'm using Cargo incorrectly. Still, I don't know if this is enough because if we add a new dependency in Cargo.toml, Cargo might automatically bump versions of existing dependencies in Cargo.lock? Because the default is ^ ? I struggled with SPEC and PRECISE - some examples in 'cargo help update' would be appreciated. It's a struggle to ensure a large and growing number of packages (95% are libraries) all use the same versions during testing/qa/ci/staging/production. It seems we have to go against best practices (?) and git commit Cargo.lock for all packages (libraries and binaries). The easiest way to ensure the versions are the same would be to just copy/paste common Cargo.toml dependencies that are defined using "=". Otherwise every time we add a dependency we have to manually set its version using --precise (manual, error prone). Perhaps it would help if we wrote a tool that analyzed all project Cargo.lock files and suggested cargo update commands to help us keep things in sync? |
It may sound like you're possibly not leveraging Cargo.lock to the fullest extent? Some thoughts:
|
... alex beat me to it, that's exactly what I was going to say :) |
Cargo hangs when I set my dependencies to contain:
urlencoded = "=0.2.0"
I can't use: urlencoded = "0.2.0" because that will actually fetch 0.2.1 and break my build (serde incompatibility).
How can I help you debug this?
Thanks!
The text was updated successfully, but these errors were encountered: