-
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
No way to express relation with persistent task #9423
Comments
We're doing the correct thing here as The most immediate solution for you would be to create top level scripts that invoke the sets of tasks you want e.g. We could look at adding a new relation between tasks so tasks could add persistent tasks into the graph, but that would be a new feature.
This was an unintentional bug in v1 where we would keep
|
Not sure how to set this up, but without this feature am I supposed to use Does that mean I need to restart turbo run everytime I make a change to |
Any progress? I'm also encountering a similar issue. In my monorepo, I have multiple npm sub-packages A, B, and C, where A depends on the builds of B and C. I tried using the However, this has caused some problems. I noticed that these sub-packages are running in parallel, which led to a situation where a SPA application in the |
Verify canary release
Link to code that reproduces this issue
https://github.com/leo-petrucci/vite-turborepo-issue
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
2.2.4-canary.9
Describe the Bug
In our application we have many apps that don't all need to be started at the same time. For example app-1 might need:
Then app-2 might need:
So we ended up setting up different
turbo
commands for each of these parts of the app. It means that if a team is working on a specific part of our stack they don't need to start stacks they won't need.Our
turbo.json
looks something like this:If a team needs to work on the dashboard they'll run
turbo dashboard
if they have to work on the shop they'll runturbo shop
.This used to work great in v1, but it's now broken in v2.
In the current version
2.2.3
when I start a Vite app without thepersistent
option Vite shuts down as soon as it's finished booting up. This was first reported in #7279.Many issues suggest adding
persistent: true
to your tasks, however that means we're unable to add those commands todependsOn
.Is there a solution for this beyond using the
--filter
option? Since that would require developers to remember which apps they want to start every time.Expected Behavior
I should be able to start a task that depends on other persistent tasks.
To Reproduce
pnpm i
turbo shop
orturbo dashboard
Additional context
No response
The text was updated successfully, but these errors were encountered: