Is there a way to inspect the rule graph? Haven't ...
# plugins
a
Is there a way to inspect the rule graph? Haven't yet seen how to work out what rules provide what dependencies, (and in turn, what they require) i.e. The only way I know to get a
ProcesResult
by giving it a
Process
input is from reading the docs.
a
You can pass the global flag
--native-engine-visualize-to=/some/dir
to dump both the rule and execution graphs to files in the passed dir as dot-format files
👍 1
It's quite large and unwieldy, but it has the information 🙂
w
yep… can render it with
dot
.
particularly helpful is to use
--native-engine-visualize-to
with a goal that you’d like to inspect: such as
./pants --native-engine-visualize-to=.. run
. that will result in a file called
rule_graph.run.dot
(for the
run
goal) which shows only rules reachable from
run
.
a
cheers 👍