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

fix(core): do not re-read from nx.json for dependsOn #26033

Merged
merged 1 commit into from
May 27, 2024

Conversation

FrozenPandaz
Copy link
Collaborator

@FrozenPandaz FrozenPandaz commented May 24, 2024

Current Behavior

The nx.json dependsOn for targets already get merged into the project configuration. When nx.json defines a dependsOn for a target but a plugin overwrites it, the task graph still considers the dependsOn from nx.json

Expected Behavior

The task graph is created based on the project configurations.

Related Issue(s)

Fixes #

Copy link

vercel bot commented May 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview May 24, 2024 7:45pm

@FrozenPandaz FrozenPandaz marked this pull request as ready for review May 25, 2024 05:38
@FrozenPandaz FrozenPandaz requested review from a team as code owners May 25, 2024 05:38
@FrozenPandaz FrozenPandaz merged commit 33ba03a into master May 27, 2024
6 checks passed
@FrozenPandaz FrozenPandaz deleted the fix-task-graph branch May 27, 2024 13:54
FrozenPandaz added a commit that referenced this pull request May 28, 2024
<!-- 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` -->

## Current Behavior
<!-- This is the behavior we have today -->

The `nx.json` `dependsOn` for targets already get merged into the
project configuration. When `nx.json` defines a dependsOn for a target
but a plugin overwrites it, the task graph still considers the dependsOn
from `nx.json`

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

The task graph is created based on the project configurations.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

(cherry picked from commit 33ba03a)
Copy link

github-actions bot commented Jun 7, 2024

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants