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 wrong detection of ember-source version for earlyBootSet #569

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

simonihmig
Copy link
Contributor

When using earlyBootSet and running tests for Ember prerelease scenarios, these would fail with autoImport.earlyBootSet is not supported for ember-source <= 3.27.0.

Seems in this case we are trying to coerce the tarball URL from ember-source-channel-url into a semver version. But semver.coerce seems way too forgiving, somehow returning 3.0.0 here. Using valid here instead seems to fix this, in the sense that if the package version is not something semver can understand, then we won't throw the error and assume it's going to be fine.

/cc @NullVoxPopuli

@simonihmig
Copy link
Contributor Author

Btw, this has been successfully tested by patching eai here

@ef4 ef4 merged commit a0a29b2 into embroider-build:main Mar 10, 2023
@simonihmig simonihmig deleted the fix-earlyboot-ember-detection branch March 10, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants