Public Access
Version bump scripts perpetuate duplicate <version> tags in Joomla manifests #321
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
version_bump.php,version_set_platform.php, andversion_check.phpall use unlimitedpreg_replacewhen updating<version>tags in Joomla XML manifests. If a duplicate<version>line ever gets introduced (merge conflict resolution, manual edit, etc.), every subsequent CI bump faithfully updates both copies — perpetuating the duplicate forever.Observed in MokoSuiteBackup
After a rebase conflict resolution,
mokosuitebackup.xmlended up with:Every CI bump after that updated both lines, so the duplicate persisted across 01.43.24, 01.43.25, etc.
Additionally,
pkg_mokosuitebackup.xmlhad a straytcharacter before the<version>tag (from a broken sed during conflict resolution). The version scripts don't touch leading whitespace, so thetpersisted across all subsequent CI bumps.Fix
limit=1inpreg_replacefor the primary version replacement<version>linesversion_bump.php,version_set_platform.php,version_check.phpFiles affected
cli/version_bump.phpcli/version_set_platform.phpcli/version_check.phpBranch created:
feature/321-version-bump-scripts-perpetuate-duplicat