https://pantsbuild.org/ logo
#general
Title
# general
p

purple-umbrella-89891

09/12/2022, 2:36 PM
Is it possible to have pants export the complete dependency graph for all files/targets? I can loop over the output of
./pants list ::
and call
./pants dependencies
for each target but with >1500 targets it's quite a bit of overhead. It would be awesome to be able to produce this output and even better to visualize it with some tool to explore the dependencies in the project. Has anyone tried that?
s

sparse-lifeguard-95737

09/12/2022, 2:37 PM
Toolchain recently made https://graphmyrepo.com/ available, but it only works on public repos at the moment
internally we use
./pants peek ::
to get a JSON form of all the dependencies in our repo, and then process that
p

purple-umbrella-89891

09/12/2022, 2:42 PM
Graphmyrepo is awesome, it's what I was imagining and a bit more šŸ™‚ As for
peek
, it didn't occur to me to use it that way, but of course you're right. It's easy to parse and contains all the needed info šŸ‘ Thanks a lot!
ā¤ļø 1
By the way, is there some channel I can use to get informed when/if you release graphmyrepo for non-public repos?
c

curved-television-6568

09/12/2022, 2:51 PM
Iā€™m sure that will be posted here in #announce when available šŸ˜‰
šŸ‘ 1
b

busy-vase-39202

09/12/2022, 7:55 PM
Funny you should ask, because we just finished writing that post! https://blog.pantsbuild.org/visualize-your-dependencies-with-graphmyrepo/
2 Views