[TIMOB-28449] CLI: Release are not sorted via semver leading to incorrect ordering
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2021-05-17T18:51:58.000+0000 |
Affected Version/s | titanium 5.3.1 |
Fix Version/s | titanium 5.3.2 |
Components | CLI |
Labels | n/a |
Reporter | Ewan Harris |
Assignee | Ewan Harris |
Created | 2021-05-17T18:08:16.000+0000 |
Updated | 2021-05-18T09:18:19.000+0000 |
Description
Description
When sorting versions the CLI just calls .sort
which will use the built in JS sort function, however this sorting is invalid for version numbers as it will place 9.3.2
before 10.0.0
. The CLI instead needs to use semver.sort in the callback
Description
1. Run \[appc\] ti sdk install latest
Actual
9.3.2.GA is seen as latest
Expected
10.0.0.GA should be seen as latest
Comments
JSON Source
https://github.com/appcelerator/titanium/pull/479