-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(turborepo): pass through arguments only for root tasks #8089
base: main
Are you sure you want to change the base?
feat(turborepo): pass through arguments only for root tasks #8089
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 7 Ignored Deployments
|
@HelloWorld017 is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
11e8bb9
to
05409ce
Compare
This would be great! |
Hey, sorry about this but that behavior must have been misdocumented. The behavior you're seeing is the one we intend to have and the docs reflect that today. It's possible that I could bring up this behavior with the team and see if it could be a configuration or flag. Does that interest the both of you? (Sidebar: @marisuxma, Jared doesn't work on this project anymore.) 😄 |
Actually the document does not describe the exact behaviour. Here's the summarized current behaviour.
Currently the Actual task running is different with cache key, which can create falsy cache, so I think they should be fixed. ConclusionSo, if the
If you want, I can open another PR, to do that. Footnotes
|
@anthonyshew (as a gentle reminder) would you check the comment I wrote? |
@HelloWorld017 |
Description
In the document, it says that cli arguments are not passed through task dependencies.
But when I actually run a task with additional arguments (e.g.
turbo run dev -- --env=stage
) the arguments (e.g.--env=stage
) are passed through all the dependencies, and their caches are missed.Related Issues: #1744 #5743
Fixes
Only pass the additional cli arguments to the root tasks. (= tasks which are not required by other tasks)
Testing Instructions
design-system
example.turbo run build --summarize -- --disable-telemetry
.--disable-telemetry
is only passed in@repo/docs#build
, not@acme/ui#build
turbo run build --summarize -- --test
@acme/ui#build
is cached.