Closed wisechengyi closed 7 years ago
2 has been there for ~years via ./pants depmap --tree ...
but ./pants depmap --graph
remains the most useful way to use depmap
(even if just looking at the raw graphviz output) - so maybe we should focus on elevating graph-style output as the primary interface for depmap
and kill the exhaustive text tree mode?
Ah ok TIL --tree
for depmap :) In that case that sounds more like an UX issue, closing this one.
I still like the 'real target names' idea tho - which would benefit depmap
either way.
probably worth keeping this open to address that + the potential idea of elevating --graph
as the primary interface?
Problem
Currently the result of depmap looks unfriendly to human, especially with long list of dependencies
Room for improvement
Ideally it should have:
Real target names instead of the internal target ids. e.g. instead of
internal-examples.tests.java.org.pantsbuild.example.usewire.usewire
, it should beexamples/tests/java/org/pantsbuild/example/usewire:usewire
. Note that there is nointernal-
anymore, because I do not think that's necessaryHave vertical lines to make it clear the dependency belongs to which branch, similar to the output of
exa
(https://the.exa.website/), e.g.@baroquebobcat anything else you would like to add?
Where to start
https://github.com/pantsbuild/pants/blob/b7cd335efae0290caf4cafff4eac77aebfc9344a/src/python/pants/backend/project_info/tasks/depmap.py#L13