fix: report launcher release version from launcher-v* tags and crate version #603
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/603"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LooperSalty/AnyXboxX. Originally posted by mahmudintaginting2024 on 2026-12-01T17:12:01Z.
Change
Fixes the launcher About line reporting
0.1.0on tagged launcher releases (such aslauncher-v0.2.1,launcher-v0.3.0, andlauncher-v0.3.1).crates/anyxboxx-launcher/Cargo.toml: set explicitversion = "0.3.1"(matching the latestlauncher-v0.3.1release tag) instead of inheriting0.1.0from[workspace.package], so builds without git tags (shallow clones, source archives) also report the current launcher version.crates/anyxboxx-launcher/src/version.rs+build.rs: resolveANYXBOXX_LAUNCHER_VERSIONat build time:launcher-v*tag onHEADalways wins (so tagged releases match their tag even ifCargo.tomlwas not bumped beforehand).launcher-v*tag wins over a staleCARGO_PKG_VERSION.CARGO_PKG_VERSION.Also watches
refs/tagsin addition toHEADandpacked-refs.crates/anyxboxx-launcher/src/about.rs: readVERSIONfromenv!("ANYXBOXX_LAUNCHER_VERSION")and add unit tests covering tag/package resolution and assertingVERSIONis past0.1.0.Linked issue: Fixes #513
Verification
Oracle and test data
about::tests::the_launcher_version_is_past_the_stale_workspace_defaultfails onmain(whereabout::VERSIONis"0.1.0") and passes with this change ("0.3.1").about::testsverify exactlauncher-v*tags, newer reachable tags overriding staleCARGO_PKG_VERSION, newerCARGO_PKG_VERSIONbefore the next tag, and fallback without matching tags.Checklist
E_NOTIMPL), never a fake success.test_readme_sync.pypasses).Note: Co-authored with Gemini Neon (AI assistant).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.