You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
A local dependent tasks (e.g. "dependsOn": [ "foo" ]), are executed in depended-on packages in addition to the package itself.
If I have three packages: a, b and c, where a depends on b which depends on c with workspace:* for package version.
All packages have a foo script that depends on ^build. The a package has a bar script that depends on foo (no ^).
When running turbo run bar, the foo script will be executed in all packages.
This is the dependency graph that shows the problem:
Expected Behavior
Only the foo script of the a package should be executed.
To Reproduce
I'm made a super basic reproduction repository: https://github.com/TxHawks/turbo-depends-on-bug that should demonstrate the issue. After installing the dependencies, simply run pnpm turbo run bar
The text was updated successfully, but these errors were encountered:
What version of Turborepo are you using?
1.2.8
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
A local dependent tasks (e.g.
"dependsOn": [ "foo" ]
), are executed in depended-on packages in addition to the package itself.If I have three packages:
a
,b
andc
, wherea
depends onb
which depends onc
withworkspace:*
for package version.All packages have a
foo
script that depends on^build
. Thea
package has abar
script that depends onfoo
(no^
).When running
turbo run bar
, thefoo
script will be executed in all packages.This is the dependency graph that shows the problem:

Expected Behavior
Only the
foo
script of thea
package should be executed.To Reproduce
I'm made a super basic reproduction repository: https://github.com/TxHawks/turbo-depends-on-bug that should demonstrate the issue. After installing the dependencies, simply run
pnpm turbo run bar
The text was updated successfully, but these errors were encountered: