fix: pre-release version suffix number lost in update feed #603
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Problem
extractVersion()inservices/updateserver/joomla.gostrips 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 as1.2.3→ stream suffix appended →1.2.3-rcA user on
1.2.3-rc1(also shown as1.2.3-rc) would not be prompted to update to1.2.3-rc2because Joomla sees them as identical versions.Expected
The version should preserve the numeric suffix:
1.2.3-rc2Fix
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.
jmiller referenced this issue2026-06-11 21:16:36 +00:00