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

proud-appointment-36730

05/26/2022, 6:10 PM
IS there any sort of "repo" or awesome list of Pants plugins out there? A visual representation of dependencies (using something like graphviz) would be killer , and I'm sure I'm not the first person to think of this
Not exactly what you were looking for re: graphviz. There may be a list of plugins somewhere, but what I've noticed is that a lot of plugins get mainlined pretty quickly - so the docs + main pants repo are a pretty good place to start
w

witty-crayon-22786

05/26/2022, 6:14 PM
mm… i wouldn’t recommend visualizing the rule graph for the purposes of visualizing your dep graph. the current recommendation is to use
./pants peek
and a small script to do it… which isn’t ideal
👍 1
w

wide-midnight-78598

05/26/2022, 6:15 PM
Ah I misread dependencies as rules 🤦‍♂️
w

witty-crayon-22786

05/26/2022, 6:17 PM
the plugin API is not currently stable (see), so while we definitely encourage folks to write plugins in their repositories, publishing them to pypi takes more caution, and means you’ll find fewer thirdparty plugins we’re very, very open to upstreaming plugins to the core though (to eventually migrate out once APIs are stable), as that puts the maintenance burden of API changes on the API change-r
b

bitter-ability-32190

05/26/2022, 6:56 PM
FWIW I have custom code that visualizes my dep graph as a https://github.com/vasturiano/force-graph It's not hard to do using the output of
peek
, which is machine-parseable
c

curved-television-6568

05/26/2022, 7:15 PM
The Explorer UI poc also has dep graph on the list of features to add ;)
❤️ 1
b

bitter-ability-32190

05/26/2022, 7:18 PM
@curved-television-6568 we could team up when thats in 😉
❤️ 1
Although my JS/TS is not great 😛
c

curved-television-6568

05/26/2022, 7:20 PM
There's the backend stuff too + ideas and feedback :)
and I wouldn't say my JS/TS is that great either 😂
😅 1
h

happy-kitchen-89482

05/26/2022, 8:06 PM
We will also soon have something fun to announce in the area of visualizing dependencies... Stay tuned!
3
📻 3
b

bitter-ability-32190

05/26/2022, 8:08 PM
👀
edge of my seat