Repository navigation
Compare release versions in calendar order - #18
Merged
Merged
Conversation
Release lines are named month.year, so 9.26 is September 2026 and the line after 12.26 is 1.27. version_key compared the numbers as written, which ranks (12, 26) above every 2027 release: from December the OS tab would tell an increasingly out-of-date system that its release was current and stop offering the upgrade. The full update still worked if the user pressed the button anyway, since dist-upgrade does not consult the version, but nothing would have told them to. Compare by year and then month instead, and cover the wrap in both directions. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B6wVrNMeWTgHaTtY76pWbK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
version_keycompared release numbers as written. Release lines are named month.year, so the line after12.26is1.27— and(1, 27)sorts below(12, 26).From December, the OS tab would have reported an increasingly out-of-date system as current:
The update itself still worked if the user pressed the button anyway —
dist-upgradedoes not consult the version — but for a full year nothing would have told them to.Compares by year then month now, with the wrap covered in both directions. 48 tests pass.
🤖 Generated with Claude Code
https://claude.ai/code/session_01B6wVrNMeWTgHaTtY76pWbK