Skip to content

normalise versions for target == this comparison#716

Closed
rvagg wants to merge 1 commit intonodejs:masterfrom
rvagg:normalise-version-comparison
Closed

normalise versions for target == this comparison#716
rvagg wants to merge 1 commit intonodejs:masterfrom
rvagg:normalise-version-comparison

Conversation

@rvagg
Copy link
Copy Markdown
Member

@rvagg rvagg commented Sep 8, 2015

For the node-gyp rebuild case, everything is calculated fine for configure but then when it gets to install it's passing in an argv[0] with the version number and the v is stripped from that version but we are comparing with process.version which has a v so the naive comparison says it's not the same version and therefore we are not targetting the "default".

The solution here is to simply normalise process.version and match it to the already normalised target version so the comparison is fair.

Reported here for 4.0.0-rc.4

@rvagg rvagg mentioned this pull request Sep 8, 2015
10 tasks
Comment thread lib/process-release.js Outdated
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.

typo: semver

@rvagg
Copy link
Copy Markdown
Member Author

rvagg commented Sep 8, 2015

thanks @targos, fixed

rvagg added a commit that referenced this pull request Sep 8, 2015
@rvagg
Copy link
Copy Markdown
Member Author

rvagg commented Sep 8, 2015

landing to get this into 4.0.0-rc.5

@rvagg rvagg closed this Sep 8, 2015
@rvagg rvagg deleted the normalise-version-comparison branch September 8, 2015 11:01
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