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

turbo watch doesn't start tasks in order #8899

Closed
1 task done
kevva opened this issue Aug 1, 2024 · 1 comment
Closed
1 task done

turbo watch doesn't start tasks in order #8899

kevva opened this issue Aug 1, 2024 · 1 comment
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage

Comments

@kevva
Copy link

kevva commented Aug 1, 2024

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

https://codesandbox.io/p/devbox/d4gmxh?migrateFrom=fxlctj

What package manager are you using / does the bug impact?

Yarn v2/v3/v4 (node_modules linker only)

What operating system are you using?

Mac

Which canary version will you have in your reproduction?

2.0.11 (there is no canary after)

Describe the Bug

When starting a task, let's say dev, in watch mode that depends on some packages with build tasks and dev is a persistent task, it will start immediately without waiting for its dependencies to build. This is quite annoying since I run a Next.js app in dev and it imports something in the instrumentation hook that depends on a package being built. But since the server starts immediately it will always throw because Next.js doesn't recover from failures in instrumentation.

Expected Behavior

I would expect it to behave like running without watch mode enabled, i.e. that all tasks waits for their dependencies to be fulfilled before starting even though they're persistent.

To Reproduce

In the reproduction example, run the following in the terminal:

yarn dlx turbo watch build --filter=app-a...

Notice how the build task for the app-a is started immediately even though it has dependencies that needs to be built.

Additional context

No response

@kevva kevva added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo labels Aug 1, 2024
@chris-olszewski
Copy link
Member

Duplicate of #8673

@chris-olszewski chris-olszewski marked this as a duplicate of #8673 Aug 1, 2024
@chris-olszewski chris-olszewski closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage
Projects
None yet
Development

No branches or pull requests

2 participants