Public Access
feat: version format enforcement — sanitize to XX.YY.ZZ on bump/release for Joomla repos #313
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?
Summary
mokocli's version tools require
XX.YY.ZZ(zero-padded two-digit groups) but silently fail when manifests use standard semver (1.0.0). Need both detection and auto-correction.Root Cause
The version regex
\d{2}\.\d{2}\.\d{2}inversion_read.php,version_bump.php, andrelease_publish.phprequires exactly two digits per group. A manifest with<version>1.0.0</version>doesn't match, producingNo version found.Requirements
1. Version sanitization on bump and release
When
platform_detectreturnsjoomla, automatically sanitize any version found in manifests toXX.YY.ZZ:1.0.0→01.00.002.1.3→02.01.0310.5.0→10.05.00Apply in:
version_bump.php— sanitize before writing bumped versionversion_read.php— sanitize on read (or at least accept both formats)release_publish.php— sanitize before creating release tag/name2. Clear error on format mismatch
When a Joomla manifest contains a non-padded version and sanitization is not applied (e.g. read-only mode), emit:
3. Scope
platform_detectoutput before enforcing formatContext
1.0.0instead of01.00.00167ae2d) but mokocli should handle this gracefullyRoot cause identified: Not a path resolution issue —
SourceResolveralready handlessource/correctly. The actual bug is the version regex\d{2}\.\d{2}\.\d{2}which requires exactly two digits per group (e.g.01.00.00). Standard semver1.0.0doesn't match.Fix applied in MokoSuiteStoreLocator: Changed all manifests to use
01.00.00format per MokoStandards convention (167ae2d).Enhancement request: Add error handling in
version_read.phpandversion_bump.phpthat detects non-padded versions in Joomla manifests and either:XX.YY.ZZformat, orVersion "1.0.0" in {file} does not match required XX.YY.ZZ format. Use zero-padded versions (e.g. 01.00.00).This should be enforced for Joomla platform repos only (not generic/node/python repos which use standard semver).
bug: version_bump.php fails to find Joomla XML manifests in source/ subdirectoryto feat: version format enforcement — sanitize to XX.YY.ZZ on bump/release for Joomla repos