Is it possible to have pants export the complete d...
# general
p
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
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
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
Iā€™m sure that will be posted here in #announce when available šŸ˜‰
šŸ‘ 1
b
Funny you should ask, because we just finished writing that post! https://blog.pantsbuild.org/visualize-your-dependencies-with-graphmyrepo/