Skip to content

[BUGFIX] Centralize build versioning info - #16813

Merged
krisselden merged 1 commit into
masterfrom
cleanup-build-info
Jul 12, 2018
Merged

krisselden merged 1 commit into
masterfrom
cleanup-build-info

Conversation

@krisselden

@krisselden krisselden commented Jul 12, 2018 •

Copy link
Copy Markdown
Contributor

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

rwjblue commented Jul 12, 2018

Copy link
Copy Markdown
Member
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)

Comment thread broccoli/build-info.js
* @param {string} txt
*/
function escapeSemVerIdentifier(txt) {
return txt.replace(NON_SEMVER_IDENTIFIER, '-');

Copy link
Copy Markdown
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
Copy Markdown
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 force-pushed the cleanup-build-info branch from 4147869 to 45f64c8 Compare July 12, 2018 01:00
@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