Skip to content
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" tasks resolved incorrectly #1212

Closed
TxHawks opened this issue May 9, 2022 · 1 comment
Closed

"dependsOn" tasks resolved incorrectly #1212

TxHawks opened this issue May 9, 2022 · 1 comment

Comments

@TxHawks
Copy link

TxHawks commented May 9, 2022

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 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:
graph-1652109792221647000

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

@gsoltis
Copy link
Contributor

gsoltis commented May 9, 2022

I think this is a duplicate of #937

@gsoltis gsoltis closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants