fix: pre-release version suffix number lost in update feed #603

Closed
opened 2026-06-11 21:15:27 +00:00 by jmiller · 0 comments
Owner

Problem

extractVersion() in services/updateserver/joomla.go strips pre-release suffixes (e.g. -rc2) completely, then the stream suffix re-appends just the base suffix (e.g. -rc). The numeric part is lost.

Example

Tag v1.2.3-rc2 → extracted as 1.2.3 → stream suffix appended → 1.2.3-rc

A user on 1.2.3-rc1 (also shown as 1.2.3-rc) would not be prompted to update to 1.2.3-rc2 because Joomla sees them as identical versions.

Expected

The version should preserve the numeric suffix: 1.2.3-rc2

Fix

In extractVersion() (lines 444-468), preserve the numeric part after the channel suffix during extraction. One approach: capture the number after the channel suffix and include it, or skip stripping when the stream suffix will be re-appended.

Impact

Pre-release update notifications between RC/beta/alpha versions of the same base version don't work.

## Problem `extractVersion()` in `services/updateserver/joomla.go` strips pre-release suffixes (e.g. `-rc2`) completely, then the stream suffix re-appends just the base suffix (e.g. `-rc`). The numeric part is lost. ## Example Tag `v1.2.3-rc2` → extracted as `1.2.3` → stream suffix appended → `1.2.3-rc` A user on `1.2.3-rc1` (also shown as `1.2.3-rc`) would not be prompted to update to `1.2.3-rc2` because Joomla sees them as identical versions. ## Expected The version should preserve the numeric suffix: `1.2.3-rc2` ## Fix In `extractVersion()` (lines 444-468), preserve the numeric part after the channel suffix during extraction. One approach: capture the number after the channel suffix and include it, or skip stripping when the stream suffix will be re-appended. ## Impact Pre-release update notifications between RC/beta/alpha versions of the same base version don't work.
Sign in to join this conversation.