xtask local: order pre-releases by semver (rc.10 after rc.9) (#820)

compare_versions compared pre-release tags as plain strings, so
1.0.0-rc.10 sorted before 1.0.0-rc.9. `cargo xtask local` uses it to pick
the newest mirrored build for `status` and to choose what `prune` keeps,
so a tenth release candidate would have been treated as older than the
ninth and pruned first.

Parse with the workspace's semver crate and compare by precedence, which
orders numeric pre-release parts as numbers.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
smittie2000
2026-10-24 07:43:05 +02:00
committed by GitHub
parent e84fa1fa70
commit 16285cd62e
3 changed files with 14 additions and 20 deletions
Generated
+1
View File
@@ -5909,6 +5909,7 @@ name = "xtask"
version = "0.7.0"
dependencies = [
"jiff",
"semver",
]
[[package]]