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): name collisions during project inference should not error out if corrected by a project.json's name #18665

Merged

Conversation

AgentEnder
Copy link
Member

@AgentEnder AgentEnder commented Aug 17, 2023

Current Behavior

Project's inferred from a project inference plugin are merged with any other configurations, but if the inferred configuration has a name which is inferred to be the same as another project's name, it can cause an issue when reading the project.json for that project later on.

Expected Behavior

No errors occur if there are project.jsons that specify unique names

Related Issue(s)

Fixes #18660
Fixes #18668

@AgentEnder AgentEnder requested review from a team as code owners August 17, 2023 03:28
@vercel
Copy link

vercel bot commented Aug 17, 2023

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

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 17, 2023 3:33am

@@ -7,7 +7,6 @@ Context for [CreateNodesFunction](../../devkit/documents/CreateNodesFunction)
### Properties

- [nxJsonConfiguration](../../devkit/documents/CreateNodesContext#nxjsonconfiguration)
- [projectsConfigurations](../../devkit/documents/CreateNodesContext#projectsconfigurations)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have access to these any more in the area where we call createNodes, and doing so could incur a significant perf hit. I don't think its a big deal to drop this, since the API isn't documented yet and is still experimental.

@FrozenPandaz FrozenPandaz merged commit 94cc716 into nrwl:master Aug 17, 2023
3 checks passed
FrozenPandaz pushed a commit that referenced this pull request Aug 18, 2023
…out if corrected by a project.json's name (#18665)

(cherry picked from commit 94cc716)
@github-actions
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 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants