Problem
Dependencies sourced from git are not considered as valid candidates for "normal" dependencies.
Steps
- Create a Cargo.toml with
env_logger = "0.10.0" and log = "=0.4.15"
- Run
cargo update and cargo tree
- As expected, there is a single copy of the
log crate
- Switch to
log = {git = "https://github.com/rust-lang/log", tag = "0.4.15" }
- Run
cargo update and cargo tree
- We now have two copies of the log crate
Possible Solution(s)
No response
Notes
Might be related to #6921
Version
cargo 1.73.0
release: 1.73.0
host: x86_64-unknown-linux-gnu
libgit2: 1.6.4 (sys:0.17.2 vendored)
libcurl: 8.4.0 (sys:0.4.65+curl-8.2.1 system ssl:rustls-ffi/0.10.0/rustls/0.21.0)
os: Gentoo Linux 2.14 [64-bit]
Problem
Dependencies sourced from git are not considered as valid candidates for "normal" dependencies.
Steps
env_logger = "0.10.0"andlog = "=0.4.15"cargo updateandcargo treelogcratelog = {git = "https://github.com/rust-lang/log", tag = "0.4.15" }cargo updateandcargo treePossible Solution(s)
No response
Notes
Might be related to #6921
Version