fix(core): run selected projects with --exclude-task-dependencies - #35562
Merged
Conversation
👷 Deploy request for nx-docs pending review.Visit the deploys page to approve it
|
👷 Deploy request for nx-dev pending review.Visit the deploys page to approve it
|
djohnson-aperture
force-pushed
the
patch-2
branch
from
May 25, 2026 15:29
1b8c8ae to
e9b90f3
Compare
`nx exec --projects @org/taskWithDeps --excludeTaskDependencies -- {command}` should still run the command for the passed project even if it's dependent tasks are ignored.
djohnson-aperture
force-pushed
the
patch-2
branch
from
June 23, 2026 16:12
e9b90f3 to
4b6d325
Compare
Contributor
|
View your CI Pipeline Execution ↗ for commit eac8b5a
☁️ Nx Cloud last updated this comment at |
Contributor
There was a problem hiding this comment.
Nx Cloud has identified a flaky task in your failed CI:
Since the failure was identified as flaky, the solution is to rerun CI. Because this branch comes from a fork, it is not possible for us to push directly, but you can rerun by pushing an empty commit:
git commit --allow-empty -m "chore: trigger rerun"
git push
🎓 Learn more about Self-Healing CI on nx.dev
FrozenPandaz
pushed a commit
that referenced
this pull request
Jul 20, 2026
…5562) `nx exec --projects @org/taskWithDeps --excludeTaskDependencies -- {command}` should still run the command for the passed project even if it's dependent tasks are ignored. <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior When `nx exec --projects @org/taskWithDeps --excludeTaskDependencies -- echo 1` 1 is never echo'd. ## Expected Behavior The command should run for at least the passed in projects, even if their dependencies are ignored. --------- Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com> (cherry picked from commit 8135f11)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
nx exec --projects @org/taskWithDeps --excludeTaskDependencies -- {command}should still run the command for the passed project even if it's dependent tasks are ignored.Current Behavior
When
nx exec --projects @org/taskWithDeps --excludeTaskDependencies -- echo 11 is never echo'd.Expected Behavior
The command should run for at least the passed in projects, even if their dependencies are ignored.