Skip to content

Conversation

blast-hardcheese
Copy link
Contributor

Description

I'm attempting to use turbo ... --graph in GHA to do some static analysis of a very large repository. It's easy enough to extract relevant patterns from a .dot file, but I wouldn't have expected to need graphviz installed if I'm not actually using it.

I guess it turns out we are using it, to do dot - -T dot > out.dot, but this seems very odd when the std::io::stdout() case just outputs directly. Seems like a bug.

Testing Instructions

Edit your PATH to remove where graphviz is installed, then

turbo run build --graph foo.dot

Prior to this PR, you should get the error WARNING turbo uses Graphviz to generate an image of your graph, but Graphviz isn't installed on this machine. and an empty foo.dot.
After this PR, you should end up with a populated dotfile and no warning.

@blast-hardcheese blast-hardcheese requested a review from a team as a code owner October 8, 2025 00:54
Copy link
Contributor

vercel bot commented Oct 8, 2025

@blast-hardcheese is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@anthonyshew anthonyshew changed the title graph: --graph=foo.dot should not require graphviz installed Oct 8, 2025
Copy link
Contributor

@anthonyshew anthonyshew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Just removed a mut, then merging!

@anthonyshew anthonyshew enabled auto-merge (squash) October 8, 2025 16:27
@anthonyshew anthonyshew merged commit 53770fe into vercel:main Oct 8, 2025
30 of 39 checks passed
@blast-hardcheese blast-hardcheese deleted the dstewart/bug/graph-dot-directly branch October 8, 2025 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants