Skip to content

fix(core): Fix wrong task graph calculation #27348

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

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

Elyahou
Copy link
Contributor

@Elyahou Elyahou commented Aug 8, 2024

Same copy of target default is shared along projects and is mutated, leading to wrong task graph. Occur only when running without daemon, probably because the daemon communication cause cloning by unmarshalling the object.

Fix by deepcloning targetDefaults

Fixes #27346

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
@Elyahou Elyahou requested a review from a team as a code owner August 8, 2024 20:03
@Elyahou Elyahou requested a review from Cammisuli August 8, 2024 20:03
Copy link

vercel bot commented Aug 8, 2024

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Aug 8, 2024 8:05pm

@AgentEnder AgentEnder self-assigned this Aug 8, 2024
@AgentEnder AgentEnder merged commit 7c8bd7c into nrwl:master Aug 9, 2024
6 checks passed
Copy link

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 Aug 16, 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.

Wrong project graph when using target defaults
2 participants