Skip to content

Compare release versions in calendar order - #18

Merged
crhy merged 1 commit into
mainfrom
fix/version-key-month-year
Sep 11, 2026
Merged

crhy merged 1 commit into
mainfrom
fix/version-key-month-year

Conversation

@crhy

@crhy crhy commented Sep 11, 2026

Copy link
Copy Markdown
Owner

version_key compared release numbers as written. Release lines are named month.year, so the line after 12.26 is 1.27 — and (1, 27) sorts below (12, 26).

From December, the OS tab would have reported an increasingly out-of-date system as current:

latest=v12.26   installed=11.26    -> (12, 26) > (11, 26) = True    OFFERS UPDATE
latest=v1.27    installed=12.26    -> (1, 27)  > (12, 26) = False   says CURRENT
latest=v9.27    installed=12.26    -> (9, 27)  > (12, 26) = False   says CURRENT
latest=v12.27   installed=12.26    -> (12, 27) > (12, 26) = True    OFFERS UPDATE

The update itself still worked if the user pressed the button anyway — dist-upgrade does 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

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
@crhy
crhy merged commit fb849f5 into main Sep 11, 2026
3 checks passed
@crhy
crhy deleted the fix/version-key-month-year branch September 11, 2026 05:30
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.

1 participant