is there a way to see dependencies in a tree forma...
# general
h
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
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
./pants paths
is exactly what i was looking for!
i love pants 🙂
❤️ 3
👖 2
h
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