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

feat(core): merge target configurations from plugin results #19935

Conversation

AgentEnder
Copy link
Member

Current Behavior

If multiple plugins identify the same target on the same project, whichever plugin identified the target last "wins", in that it completely overwrites the already present target.

Since project.json is implemented as a plugin, this means the configuration inside project.json overwrites the full target block that was identified by any plugin.

Expected Behavior

If the already identified target, and the newly found target are "compatible (either only 1 specifies executor, or the executor matches), then we can merge the target configurations.

This enables overwriting 1 or 2 properties in the project.json, while inference takes care of the rest.

Related Issue(s)

Fixes #

@AgentEnder AgentEnder requested a review from a team as a code owner October 30, 2023 16:49
@vercel
Copy link

vercel bot commented Oct 30, 2023

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 Oct 30, 2023 10:54pm

@AgentEnder AgentEnder force-pushed the feat/merge-target-configurations-from-plugins branch 3 times, most recently from 5133b06 to 5b4c7c7 Compare October 30, 2023 17:18
@AgentEnder AgentEnder force-pushed the feat/merge-target-configurations-from-plugins branch from 5b4c7c7 to 8ae6688 Compare October 30, 2023 22:53
@AgentEnder AgentEnder enabled auto-merge (squash) October 30, 2023 22:54
@AgentEnder AgentEnder merged commit c156058 into nrwl:master Oct 31, 2023
2 checks passed
Copy link

github-actions bot commented Nov 6, 2023

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 Nov 6, 2023
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.

2 participants