Repository navigation
fix: a pre-release or test build is offered the final release of its own version - #88
Merged
Merged
Conversation
…own version version_number orders 0.4.10-rc1 and 0.4.10 the same, and the update check offered only a higher number, so a build like 0.4.10-check112 was never offered 0.4.10. release_is_newer offers the same number when the running build carries a pre-release suffix. Released builds have none: nothing changes for them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 of 5 tasks
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.
A build with a pre-release suffix (
0.4.10-rc2, or the hardware-check test build0.4.10-check112) was never offered the final release of its own number.Why
version_numberpacks only the three numbers, so0.4.10-check112and0.4.10are the same number. This is on purpose: the 0.4.8 release must not count as a downgrade of 0.4.8-rc1. The update check then offered only a higher number (check_for_update,src/app/common_boot.cpp). As a result, someone who runs a test build of 0.4.10 would stay on it when 0.4.10 is released. The rc builds of 0.4.8 had the same gap.The change
release_is_newer(release, running)incore/updatedecides what is offered:check_for_updateuses it.version_number, the downgrade guard of the logon copy and the version check of a downloaded zip are unchanged.Not changed
A test build still installs itself as the logon copy when a run saves a result there and apply-at-logon is on (
update_logon_copy, since 0.3.1). That is intended, and documented on the PR #87 branch. Once this is merged, such a build is offered the final release when it comes out.Tests
cmake --workflow --preset ci(Release,/W4 /WX): no warnings.Not to be merged before the owner's review.
🤖 Generated with Claude Code