-
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
[turborepo] can't force a single workspace to run task that has dependsOn #2939
Comments
@tknickman thanks for the reply. unfortunately this doesn't seem to work for tasks dependent on the same task. running: And actually I don't think I want to ignore dependsOn entirely. For example, if i have a build task that has |
@tknickman Is there a workaround for this? |
Hi all, could you help me understand the reasoning for wanting to run a single task in a single package and ignore all dependencies? We could add an additional flag just for this behavior, but we want to make sure we are understanding the problem you're encountering/what you're trying to achieve before we add another flag. |
@chris-olszewski The linked issue illustrates the use case I've had for |
The behavior of |
What version of Turborepo are you using?
1.6.2
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
if i have a task
compile
specified asi can't exclude the dependencies of the task no matter what i try.
my best attempt was
turbo compile --filter="\!app^..." --filter="app" --force
Expected Behavior
explicitly excluding deps should override the behavior of dependsOn and not run the task for dependencies
To Reproduce
make a monorepo with workspace
app
which depends on workspaceanyother
and with taskcompile
specified asrun
turbo compile --filter="\!app^..." --filter="app" --force
Reproduction Repo
No response
cc: @spikebrehm @adamrneary
The text was updated successfully, but these errors were encountered: