Skip to content

Munge pre-release versions in Vanagon builds - #110

Merged
Sharpie merged 1 commit into
OpenVoxProject:mainfrom
Sharpie:munge-pre-releases
Jul 15, 2026
Merged

Munge pre-release versions in Vanagon builds#110
Sharpie merged 1 commit into
OpenVoxProject:mainfrom
Sharpie:munge-pre-releases

Conversation

@Sharpie

@Sharpie Sharpie commented Jul 15, 2026

Copy link
Copy Markdown
Member

Short description

PR OpenVoxProject/vanagon#95 updated Vanagon's handling of Git tags. If the tag matches a semver.org pre-release with "alpha", "beta" or "rc" as the pre-release identifier, then the "-" in the version string is substituted for "~". That is, a tag like 9.0.0-beta1 becomes the following package version: 9.0.0~beta1

This is done because the dpkg and rpm package managers treat ~ specially and sort any version strings containing it before all other strings. This changes allows a 9.0.0~alpha1 package to upgrade to 9.0.0~beta1, and then to 9.0.0~rc0, and finally to 9.0.0.

This commit updates the munging logic in the build_vanagon.yml workflow to correctly pass these versions to rake vox:upload.

See: https://semver.org
See: https://manpages.debian.org/bookworm/dpkg-dev/deb-version.7.en.html#Sorting_algorithm
See: https://rpm.org/docs/6.0.x/man/rpm-version.7#Comparing

Checklist

I have:

PR OpenVoxProject/vanagon#95 updated Vanagon's handling of Git tags.
If the tag matches a semver.org pre-release with "alpha", "beta" or "rc" as
the pre-release identifier, then the "-" in the version string is
substituted for "~". That is, a tag like `9.0.0-beta1` becomes the
following package version: `9.0.0~beta1`

This is done because the `dpkg` and `rpm` package managers treat `~`
specially and sort any version strings containing it before all other
strings. This changes allows a `9.0.0~alpha1` package to upgrade to
`9.0.0~beta1`, and then to `9.0.0~rc0`, and finally to `9.0.0`.

This commit updates the munging logic in the `build_vanagon.yml`
workflow to correctly pass these versions to `rake vox:upload`.

See: https://semver.org
See: https://manpages.debian.org/bookworm/dpkg-dev/deb-version.7.en.html#Sorting_algorithm
See: https://rpm.org/docs/6.0.x/man/rpm-version.7#Comparing

Signed-off-by: Charlie Sharpsteen <charlie@overlookinfratech.com>
@Sharpie
Sharpie enabled auto-merge July 15, 2026 14:42
@Sharpie
Sharpie requested a review from a team July 15, 2026 14:53
@Sharpie
Sharpie merged commit a3503b6 into OpenVoxProject:main Jul 15, 2026
1 check passed
@Sharpie
Sharpie deleted the munge-pre-releases branch July 15, 2026 14:53
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.

2 participants