Skip to content

cargo install --locked is using dev-dependencies #14937

Open
@kushudai

Description

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:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-dependency-resolutionArea: dependency resolution and the resolverC-bugCategory: bugCommand-installS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions