Open bsutton opened 3 years ago
/cc @sigurdm @jonasfj Could you find an appropriate area label?
Transfering to the pub
repository.
I rarely use the pub deps
command myself, but I can see how it might make it easier to analyze the dependencies.
I guess part of the problem here is that the dependency graph is not really a tree (possibly not even a DAG), making it hard to read the output.
Perhaps we could output the graph in graphviz dot format or something similar - enabling a graphic representation of the graph that might be easier to interpret.
My use case was to find why a specific package was included.
I had a conflict and was trying to establish why.
My long experience with maven was essentially the same. A full view of the entire dependency tree was rarely used in my experience.
I really want to see an inverse tree starting from the passed dependency.
The current textual tree format is fine once inverted.
On Tue, 23 Feb 2021, 8:29 pm Sigurd Meldgaard, notifications@github.com wrote:
I rarely use the pub deps command myself, but I can see how it might make it easier to analyze the dependencies.
I guess part of the problem here is that the dependency graph is not really a tree (possibly not even a DAG), making it hard to read the output.
Perhaps we could output the graph in graphviz dot https://www.graphviz.org/ format or something similar - enabling a graphic representation of the graph that might be easier to interpret.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dart-lang/pub/issues/2889#issuecomment-784033789, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG32OB6X6WVE5HXQMNNICLTANYRHANCNFSM4X4JIIAA .
Do you want it inverted, or just having it "pruned" to the relevant parts? I guess you always want to start with the root package?
Inverted would be good but it could be confusing when the full view isn't.
Pruned would be sufficient.
On Tue, 23 Feb 2021, 10:40 pm Sigurd Meldgaard, notifications@github.com wrote:
Do you want it inverted, or just having it "pruned" to the relevant parts? I guess you always want to start with the root package?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dart-lang/pub/issues/2889#issuecomment-784140443, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG32OEPDPCQXHHZU4I5UDTTAOH2BANCNFSM4X4JIIAA .
For a project with a large no. of dependencies it can be hard to find a single dependency and its ancestors.
It would be useful to have an option that just shows the tree for a single dependency.
e.g.
rather than what I see now :+1:
pub deps