https://pantsbuild.org/ logo
h

high-energy-55500

02/16/2022, 12:55 AM
is there a way to see dependencies in a tree format? i’m trying to find what dependencies are used by a certain (first-party) module (A), and this works:
Copy code
./pants dependencies --dependencies-transitive src/path/to/module_A.py
however, i’m trying to understand how another package (module B) is getting called, and i’d like to be able to see the tree from module B to A
h

happy-kitchen-89482

02/16/2022, 1:01 AM
The
./pants paths
goal may be helpful: https://www.pantsbuild.org/docs/reference-paths
More generally, there is no easy way (yet) to visualize pants deps in a terminal, but you can use
./pants peek
to get detailed json, including dependencies, and turn those into dot or some other useful format
h

high-energy-55500

02/16/2022, 1:15 AM
./pants paths
is exactly what i was looking for!
i love pants 🙂
❤️ 3
👖 2
h

hundreds-father-404

02/16/2022, 1:54 AM
I forgot that's a goal! It'd be good to document on project introspection page, I opened https://github.com/pantsbuild/pants/issues/14499 to track that