From b4a2a457a1e2cfbab8ab39f778069fc8be8b68e0 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Tue, 15 Sep 2026 13:19:09 +0200 Subject: [PATCH] debian: Change weekly versioning scheme Right now our weekly Debian versioning scheme is VERSION="$BASE_VERSION~git$DATE.$SHA-$CLEAN_COMPONENT". This sorts weekly releases AFTER the BASE_VERSION, so when both stable and unstable are enabled, we never get weekly versions installed. https://wiki.debian.org/Versioning proposes {upcoming_version}~git{date}.{hash}-{revision} for nightly releases, which means we would have to know the release number of the upcoming version in advance. I don't think that is useful for us. By switching from a tilde to a dash, our weekly versions are not sorted above the stable base version and we will install the weekly versions over the base version, which I believe is closer to what we intend. Fixes: https://forgejo.ellis.link/continuwuation/continuwuity/issues/2081 --- .forgejo/workflows/build-debian.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/build-debian.yml b/.forgejo/workflows/build-debian.yml index 81ea4cedc..8e3094cff 100644 --- a/.forgejo/workflows/build-debian.yml +++ b/.forgejo/workflows/build-debian.yml @@ -144,7 +144,7 @@ jobs: COMPONENT="dev-$(echo '${{ forge.ref_name }}' | sed 's/[^a-zA-Z0-9.+]/-/g' | tr '[:upper:]' '[:lower:]' | cut -c1-30)" fi CLEAN_COMPONENT=$(echo $COMPONENT | sed 's/[^a-zA-Z0-9.+]/~/g') - VERSION="$BASE_VERSION~git$DATE.$SHA-$CLEAN_COMPONENT" + VERSION="$BASE_VERSION-git$DATE.$SHA-$CLEAN_COMPONENT" fi echo "component=$COMPONENT" >> $GITHUB_OUTPUT echo "version=$VERSION" >> $GITHUB_OUTPUT