chore: adopt k3s-style versioning convention #51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/adopt-k3s-style-versioning"
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?
Summary
v<upstream>+rs.<n>(k3s/k0s convention) so both upstream portal-tunnel compat version and Rust port build counter are visible.PORTAL_RS_BUILDat compile time viabuild.rs;--versionnow printsportal-relay 2.1.8+rs.Npluscompatible with portal-tunnel v2.1.8.+→-for OCI tags and forwards thers.Nsegment as a build-arg.version = "2.1.8"(tracks upstream); crate inherits.Why
Current
v2.1.8-rs.devNtags don't cleanly distinguish dev iterations from stable port builds, and conflate the upstream compat version with port iteration in a way that doesn't match common conventions for upstream-tracking distributions. This switches to the k3s/k0s pattern, which is the closest precedent for a lightweight reimplementation that aims for 1:1 compatibility with a tracked upstream.Versioning convention going forward
Container image tags substitute
+→-(e.g.,v2.1.8-rs.1) since OCI tag spec disallows+.Test plan
cargo build --releasesucceeds with new workspace version.PORTAL_RS_BUILD=rs.1 cargo build→--versionprintsportal-relay 2.1.8+rs.1/compatible with portal-tunnel v2.1.8.portal-relay 2.1.8+rs.dev.python3 -c 'import yaml; yaml.safe_load(open(...))').v2.1.8+rs.1triggers image build withcode.rly.best/gofix/portal-tunnel-rs:v2.1.8-rs.1(verify after merge).