-
Notifications
You must be signed in to change notification settings - Fork 16
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
display indirect dependency chain for incompatible crates #76
Comments
With > cargo tree --target x86_64-unknown-redox -i arrayref
arrayref v0.3.6
└── blake2b_simd v0.5.10
└── rust-argon2 v0.7.0
└── redox_users v0.3.4
└── dirs v1.0.5
└── term v0.5.2
├── ascii-canvas v2.0.0
│ └── lalrpop v0.18.1 (/tmp/tmp.gzwDcAI4ZG/lalrpop-0.18.1)
└── lalrpop v0.18.1 (/tmp/tmp.gzwDcAI4ZG/lalrpop-0.18.1) So I think the difference here is that > ~/.cargo/bin/cargo-tree tree --all-targets -i -p arrayref
arrayref v0.3.6
└── blake2b_simd v0.5.10
└── rust-argon2 v0.7.0
└── redox_users v0.3.4
└── dirs v1.0.5
└── term v0.5.2
├── ascii-canvas v2.0.0
│ └── lalrpop v0.18.1 (/tmp/tmp.gzwDcAI4ZG/lalrpop-0.18.1)
└── lalrpop v0.18.1 (/tmp/tmp.gzwDcAI4ZG/lalrpop-0.18.1) (*) I definitely think having some sort of debugging output for this sort of thing would be nice. |
Oh, turns out > cargo tree --target all -i arrayref
arrayref v0.3.6
└── blake2b_simd v0.5.10
└── rust-argon2 v0.7.0
└── redox_users v0.3.4
└── dirs v1.0.5
└── term v0.5.2
├── ascii-canvas v2.0.0
│ └── lalrpop v0.18.1 (/tmp/tmp.gzwDcAI4ZG/lalrpop-0.18.1)
└── lalrpop v0.18.1 (/tmp/tmp.gzwDcAI4ZG/lalrpop-0.18.1) |
@Nemo157 That is an excellent new. In that case it might be sufficient to just add 'how-to' into |
I've run
lichking check
on my crate and it found depencency with incompatible license. Since it is not direct dependency, I've tried to find how it comes into my project and failed. Thecargo tree
does not show it at all, yetlichking
is able to find it.Reproduction
My project is not public yet, but reproduction can be done on
lalrpop v0.18.1
. Runningcheck
tells us thatarrayref
is not compatible:Using
cargo tree
to find where it comes from gives nothing:Since
cargo tree
does not see thearrayref
as dependency oflalrpop
project, where thelichking
gets the information?It might be good idea to introduce
--verbose
(or similar) parameter tocheck
command that would display name of the crate with incompatible license together with dependency chain that lead to its inclusion into project.The text was updated successfully, but these errors were encountered: