turbo
turbo copied to clipboard
Gatsby logs not captured properly
What version of Turborepo are you using?
1.3.4
What package manager are you using / does the bug impact?
Yarn v2/v3 (node_modules linker only)
What operating system are you using?
Mac
Describe the Bug
When running build, all logs from Gatsby (quick start project) are not placed in the appropriate subrepo tag.


Expected Behavior
All logs should have their subrepo name next to the.
To Reproduce
https://github.com/alvarlagerlof/turborepo-bug
Thanks for the reproduction! I believe this is happening because Gatsby parallelizes builds across multiple processes - but turbo
is only aware of the main process (that it started). You can see this by changing your build command to include the verbose flag:
"build": "gatsby build --verbose",
And then Gatsby will tell you how many new processes (workers) it's starting (variable based on CPU count):
verbose Creating 7 worker
Cool. No problem! I suspected something like that might have been the cause. Is there any reasonable thing that could be done to capture logs from the workers?