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

Only check semver range if ember-source is present #423

Merged

Conversation

mixonic
Copy link
Member

@mixonic mixonic commented Jan 8, 2020

Prior to this patch the value false would be passed to semver.gte( causing an exception of Invalid Version: false. This ensures the range validity of the version is only checked if one is present.

Specifically bower versions of Ember have an emberVersion of false here. However none of those versions of Ember support co-location.

Fixes #422

Prior to this patch the value `false` would be passed to `semver.gte(`
causing an exception of `Invalid Version: false`. This ensures the range
validity of the version is only checked if one is present.

Specifically bower versions of Ember have an `emberVersion` of `false`
here. However none of those versions of Ember support co-location.

Fixes ember-cli#422
@rwjblue rwjblue force-pushed the mixonic/invalid-version-exception branch from 26ffeca to bb8a57f Compare January 8, 2020 20:22
@rwjblue rwjblue changed the title Only check semver range if emberVersion is present Only check semver range if ember-source is present Jan 8, 2020
@rwjblue rwjblue added the bug label Jan 8, 2020
@rwjblue
Copy link
Member

rwjblue commented Jan 8, 2020

Looks good to me, I just pushed a minor formatting tweak (so the ember guard matches the babel one).

@rwjblue rwjblue merged commit 375fe4c into ember-cli:master Jan 8, 2020
@mixonic mixonic deleted the mixonic/invalid-version-exception branch January 8, 2020 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When using an Ember build from Bower, Invalid Version: false
2 participants