-
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
dependsOn is not respected when using --scope #860
Comments
This is unfortunately currently a known issue. Right now, you probably want For more details, this is because we currently remove any packages not selected by the various filter flags from the package dependency graph before calculating the task dependency graph. So, if a package ( |
Thanks @gsoltis - is this related to the |
Unfortunately no. |
@IPWright83 I filed #912 to track the issue. |
Thanks @gsoltis, I've subscribed to the other issue too to monitor. If this is now a useless duplicate feel free to close. |
Closing in favor of #912 |
What version of Turborepo are you using?
1.1.4
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Linux
Describe the Bug
I'm trying to run tests for a package, the equivalent of
pnpm turbo run test --no-deps --scope=@iw/button
. This has a dependency on@iw/log
so I've therefore configured myturbo.json
file to include the^build
step.This however doesn't include build
@iw/log
because of the scope. I therefore need to pass--include-dependencies
in to encourage Turborepo to run the build on any dependencies.However this also now runs the
test
script against@iw/log
which isn't what I wanted it to do.Expected Behavior
I expected to be able to run my tests on just a single package, automatically triggering the build steps - but without also running their tests.
To Reproduce
This assumes you have pnpm setup:
Then this will fail:
This will work, but attempts to run tests for
@iw/log
too as evidenced by:The text was updated successfully, but these errors were encountered: