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 failed to select a version for dependencies, but problem is fixed when state is reset #9994
Comments
Ha, I just got a reproduction locally. Steps:
No spooky cross-project nonsense, but it's a solid start. In this case, a simple Diagnostics
Complete [package]
name = "bevy-scratchpad"
version = "0.1.0"
authors = ["Alice Cecile <alice.i.cecile@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy = { git = "https://github.com/bevyengine/bevy", commit = "6a8a8c9d21f32e0e46623db9438813b009f9e014" }
|
Thanks for digging into a reproduction! I think this is almost certainly the same as #9240. When switching from a crates.io dep to a git dep, and the git dep has new dependency requirements, the dependencies in |
FYI, the initial user report was switching from a Git version to a cargo release. The fact that this occurs across repositories is also suspicious. Perhaps the problem is that the git version of Bevy also lists it's version as "0.5.0"? |
I'm not sure if that'll help, but seems worth a shot to try. I'm going to close as a duplicate of #9240, but we'll try to double-check this example gets fixed when that issue is addressed. |
Problem
Users use an old version of a library in one project, then create a new project with the updated version of our library.
The new project has dependency conflicts, reporting "failed to select a version for DEPENDENCY".
Bevy users report this problem on a near daily basis, but I can't reproduce it locally.
The workaround is to use
cargo clean
,cargo update
and deleteCargo.lock
, which invariably resolves the issue.Steps
I have not been able to reproduce this from a clean slate.
Possible Solution(s)
Automatically check for stale dependencies in some fashion.
Failing that, supply an error message suggesting the workaround given.
Notes
No response
Version
The text was updated successfully, but these errors were encountered: