cargo tree -d
incorrectly shows duplicate workspace dependency with resolver = "2"
#14732
Labels
A-features2
Area: issues specifically related to the v2 feature resolver
C-bug
Category: bug
Command-tree
Problem
Given workspace with three crates:
Where
crate1
andcrate2
usedep
identically:Then
cargo tree -d
reports duplicatedep
dependencySteps
Cargo.toml
:crates/crate1/Cargo.toml
:crates/crate2/Cargo.toml
:crates/dep/Cargo.toml
:cargo tree -d
:Possible Solution(s)
No response
Notes
All of this should be true for the issue to reproduce:
resolver = "2"
crate1
orcrate2
is a proc macrodep
has non-emptydefault-features
Version
cargo 1.83.0-nightly (c1fa840 2024-08-29)
release: 1.83.0-nightly
commit-hash: c1fa840
commit-date: 2024-08-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: Arch Linux Rolling Release [64-bit]
The text was updated successfully, but these errors were encountered: