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

Composition: Fix metadata.json incorrectly overriding main.js refs versions #18185

Merged
merged 3 commits into from May 10, 2022

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented May 10, 2022

Issue:
When the user specifies versions for refs in main.js those are overloaded by metadata.json returning versions: {}.

What I did

When the loaded data from metadata.json contains an empty versions object, disregard it.
Also added a tests for it.

@nx-cloud
Copy link

nx-cloud bot commented May 10, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 1d7367e. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@ndelangen ndelangen requested a review from shilman May 10, 2022 09:18
@ndelangen ndelangen self-assigned this May 10, 2022
@ndelangen ndelangen changed the title Make versions defined in main.js support better May 10, 2022
It's assumed that if the user specified them, they intent to 'filter'.
@ndelangen
Copy link
Member Author

After talking about it with @shilman we decided to always prefer the user specified versions.

@shilman shilman changed the title Make versions defined in main.js support better Composition: Fix metadata.json incorrectly overriding main.js refs versions May 10, 2022
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

LGTM. Merging!

@shilman shilman merged commit 0b3e2ea into next May 10, 2022
@shilman shilman deleted the fix/not-override-versions branch May 10, 2022 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants