-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Using pass through args drops options when run w/ Yarn 1 #7864
Comments
So this must be a A couple workarounds:
|
Definitely, I'm also stumped.
I'm trying to avoid using a global version of
A better example would be running Jest with |
This is an issue with It can be displayed by replacing the
If you want to invoke
Using this opportunity to clarify that global turbo will defer to whatever version of turbo is installed locally e.g.:
This should allow upgrading |
Quick question: Why is this not working for me? I'm on Yarn v4
{
"scripts": {
"format" "echo foo-$@",
}
}
{
"pipeline": {
"//#format": {},
"format": {}
}
} yarn turbo run format --filter=// --force -- bar # prints 'foo-bar'
yarn turbo run //#format --force -- bar # prints 'foo-' I expected both to have same result when running without cache enabled. |
Verify canary release
Link to code that reproduces this issue
https://github.com/ianduvall/turborepo-issue-7864
What package manager are you using / does the bug impact?
Yarn v1
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
turbo@1.13.1-canary.3
Describe the Bug
Using pass through arguments seems to drop any specified options. For example:
Using one set of
--
as the docs suggest doesn't seem to work.Expected Behavior
I would expect using pass through arguments to work with turbo options. For the given example, I would expect
yarn turbo run format --filter=// -- -- --check
to run theformat
script only in the rootpackage.json
with the arguments--check
appended.To Reproduce
Run
yarn turbo run format --filter=// -- -- --check
in a repo with a scriptformat
in the rootpackage.json
. See https://github.com/ianduvall/turborepo-issue-7864.Additional context
Related issue: #1731
The text was updated successfully, but these errors were encountered: