Skip to content
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 tree -d reports duplicates when the same dependency is included in dependencies and build-dependencies #10528

Closed
lopopolo opened this issue Mar 31, 2022 · 2 comments
Labels
C-bug Category: bug

Comments

@lopopolo
Copy link

Problem

cargo tree -d shows duplicates, but all of these duplicates show the same package version.

$ cargo tree -d -p artichoke-backend
regex v1.5.5
├── artichoke-backend v0.10.0 (/Users/lopopolo/dev/artichoke/artichoke/artichoke-backend)
└── spinoso-regexp v0.2.0 (/Users/lopopolo/dev/artichoke/artichoke/spinoso-regexp)
    └── artichoke-backend v0.10.0 (/Users/lopopolo/dev/artichoke/artichoke/artichoke-backend)

regex v1.5.5
└── parse-zoneinfo v0.3.0
    └── chrono-tz-build v0.0.2
        [build-dependencies]
        └── chrono-tz v0.6.1
            └── spinoso-time v0.2.0 (/Users/lopopolo/dev/artichoke/artichoke/spinoso-time)
                └── artichoke-backend v0.10.0 (/Users/lopopolo/dev/artichoke/artichoke/artichoke-backend)

regex-syntax v0.6.25
└── regex v1.5.5 (*)

regex-syntax v0.6.25
└── regex v1.5.5 (*)

Steps

Run cargo tree -d -p artichoke-backend as of https://github.com/artichoke/artichoke/tree/b1d3cd75b6f6051a6e18ee6d46694157002f366e.

Possible Solution(s)

No response

Notes

No response

Version

$ cargo version --verbose
cargo 1.58.0 (f01b232bc 2022-01-19)
release: 1.58.0
commit-hash: f01b232bc7f4d94f0c4603930a5a96277715eb8c
commit-date: 2022-01-19
host: x86_64-apple-darwin
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.79.1 (sys:0.4.51+curl-7.80.0 system ssl:(SecureTransport) LibreSSL/3.3.5)
os: Mac OS 12.3.0 [64-bit]
@lopopolo lopopolo added the C-bug Category: bug label Mar 31, 2022
@lopopolo
Copy link
Author

I think this might be the same as #9599 because it is likely that regex is being built with fewer features in build dep mode.

@weihanglo
Copy link
Member

I believe you are right. Run cargo tree -d -p artichoke-backend -f '{p} [{f}]' and you will find two regex-syntax using different features. Closing in favour of #9599.

Thanks for your report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants