Skip to content

fix version sorting and report major version in outdated - #670

Merged
joshspicer merged 6 commits into
mainfrom
joshspicer/sorted-version-fixes
Nov 8, 2023
Merged

joshspicer merged 6 commits into
mainfrom
joshspicer/sorted-version-fixes

Conversation

@joshspicer

@joshspicer joshspicer commented Oct 31, 2023 •

Copy link
Copy Markdown
Contributor

Ref: #676

Reported in devcontainers/spec#327

Previously the comparision done to sort versions would incorrectly place patch versions >=10 above versions x.x.2-x.x.9. This is due to the versions seemingly being sorted as string.

Eg:
image
Note that 1.0.11 is not the final entry.

@joshspicer
joshspicer marked this pull request as ready for review November 7, 2023 18:37
@joshspicer
joshspicer requested a review from a team as a code owner November 7, 2023 18:37

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.

Looks great! ⚡

@chrmarti Christof Marti (chrmarti) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great, thank you!

@joshspicer
joshspicer merged commit 88cbc17 into main Nov 8, 2023
@joshspicer
joshspicer deleted the joshspicer/sorted-version-fixes branch November 8, 2023 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants