<@U051221NF> I saw you blog post on <https://www.p...
# general
b
@happy-kitchen-89482 I saw you blog post on https://www.pantsbuild.org/blog/2022/09/12/visualize-your-dependencies-with-graphmyrepo but unfortunately the website doesn't exist anymore. Is there any guides on how could I export the repo as a graph dot notation like this https://graphviz.org/doc/info/lang.html?
h
Yes, that went away when Toolchain did. The code to render that graph can be open-sourced in case someone wants to integrate it into Pants itself.
You can get a detailed JSON document representing the graph using
pants peek
and then write some script to turn that into dot
There has been much discussion about getting Pants itself to emit dot, but it ends up getting bogged down in discussion about what info that graph should contain...
b
Please open source it if you can. I'm trying to achieve the same as moonrepo has: https://moonrepo.dev/docs/commands/project-graph
h
@fast-nail-55400 may have been looking into that, there is a tiny bit of effort that needs to happen first
b
Thanks a lot! It would be a great addition. I just checked pants peek and I can make something based on this
h
To clarify, @fast-nail-55400 is potentially looking into open-sourcing the toolchain repo, the integration into Pants would require a motivated user to actually do that work...
b
I'm in! I already setup bazel remote in my stack and got very good results! So I presume lot's of good things would come from the open sourcing of toolchain
f
To clarify, @fast-nail-55400 is potentially looking into open-sourcing the toolchain repo, the integration into Pants would require a motivated user to actually do that work...
I am although I had to pause that work due to some higher priority stuff.
I'll have time later this week and/or early next week to turn back to it,
c
Just to be explicit as I'm grepping around, https://github.com/toolchainlabs/toolchain-oss/ has the code for
graphmyrepo
, but there wasn't a simple graphviz converter. Correct?
h
I think there might also have been something like that? But yeah, I was referring to the interactive graph