cargo install --locked
is using dev-dependencies #14937
Open
Description
opened on Dec 15, 2024
Problem
I previously opened this issue in addr2line gimli-rs/addr2line#338 and I thought it was a simple matter of updating the lock file as attempted in gimli-rs/addr2line#337
However, @philipc pointed out that the dependency resolution failure was from a dev-dependency which surprised me.
I ran through cargo tree
and I verified backtrace-rs
is only in dev dependencies.
Steps
Run
cargo install addr2line --locked
Possible Solution(s)
Unclear
Notes
I looked through open issues and it's not clear to me if this is a duplicate of any of these:
- Cargo fails to resolve when adding a git dependency incompatible with a locked crate version but compatible with the
Cargo.toml
requirement #14916 - Nondeterministic resolution (?) causing dependency to flap in Cargo.lock #13942
- Cargo should skip crates.io check with --locked and all dependencies already resolved #10984
- "all possible versions conflict with previously selected packages" error is not giving the appropriate diagnostic #10189
cargo install --locked
is not really locked #9289
Version
cargo version --verbose
cargo 1.83.0 (5ffbef321 2024-10-29)
release: 1.83.0
commit-hash: 5ffbef3211a8c378857905775a15c5b32a174d3b
commit-date: 2024-10-29
host: x86_64-unknown-linux-gnu
libgit2: 1.8.1 (sys:0.19.0 vendored)
libcurl: 8.9.0-DEV (sys:0.4.74+curl-8.9.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w 11 Sep 2023
os: Ubuntu 22.4.0 (jammy) [64-bit]
Activity