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

[BUGFIX] Centralize build versioning info #16813

Merged
merged 1 commit into from
Jul 12, 2018
Merged

Conversation

krisselden
Copy link
Contributor

@krisselden krisselden commented Jul 12, 2018

Make BUILD_TYPE only affect published buildType if on master so we don't accidentally publish from lts/release branches over the current beta or release.

Only use a tag as version if it is parseable by semver.

The build-for-publishing script uses git info instead of travis env.

Fixes #16765 (once backported)

@rwjblue

This comment has been minimized.

@rwjblue
Copy link
Member

rwjblue commented Jul 12, 2018

TypeError: Could not require 'ember-cli-build.js': Cannot read property 'replace' of null
    at escapeSemVerIdentifier (/home/travis/build/emberjs/ember.js/broccoli/build-info.js:118:14)
    at buildFromParts (/home/travis/build/emberjs/ember.js/broccoli/build-info.js:73:9)
    at buildInfo (/home/travis/build/emberjs/ember.js/broccoli/build-info.js:23:19)
    at Object.<anonymous> (/home/travis/build/emberjs/ember.js/broccoli/version.js:3:42)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)

* @param {string} txt
*/
function escapeSemVerIdentifier(txt) {
return txt.replace(NON_SEMVER_IDENTIFIER, '-');
Copy link
Member

Choose a reason for hiding this comment

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

txt is null sometimes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is fixed now

Make BUILD_TYPE only affect published buildType if on master so we don't
accidentally publish from lts/release branches over the current beta or
release.

Only use a tag as version if it is parseable by semver.

The build-for-publishing script uses git info instead of travis env.
@krisselden krisselden merged commit ccd7cd6 into master Jul 12, 2018
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.

3 participants