-
Notifications
You must be signed in to change notification settings - Fork 986
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
[feature] Add command to query *why* a package is a dependency #15837
Comments
HI @fschoenm - thanks for this request. With the html output of
Will check with the team to see the feasibility of having a subcommand. |
Hi @jcar87, I tried to use the graph view but it has a lot of problems IMHO:
|
Hi @fschoenm For Conan 2.2 we're releasing a new A few extra things:
Let me know if that helps, happy to hear back from you :) |
@RubenRBS Thanks, the new dependency graph looks much more useful this way. I'm looking forward to try it. I didn't think a new graph layout would be easier than implementing a why function but I'm happy :) |
The new graph html is proving super useful to understand dependency graphs way better than before. I am closing this issue as solved with it, thanks for the feedback! |
What is your suggestion?
I'd like to suggest a subcommand to query why a certain dependency is part of the dependency graph. As far as I know there's no such command or option in
conan graph info
. It seems to be possible to do a related query withconan graph info --package-filter
but that doesn't show where the dependency comes from.Example: Many packages require openssl but because we don't do network communication, we want to get rid of this dependency by finding the package(s) that require it and changing their options. The command could be something like
conan graph why 'openssl/*'
(inspired byaptitude why
). Maybe it could also be an option ofconan graph explain
orconan graph info
.Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: