fix: version_bump.php only writes to README, not manifests #152

Closed
opened 2026-05-26 17:12:02 +00:00 by jmiller · 1 comment
Owner

Problem

version_bump.php reads from both README.md and manifest XML to find the base version, but only writes the bumped version back to README.md. This creates a window where README and manifests are out of sync, requiring a separate version_set_platform.php call.

Solution

version_bump.php now writes the bumped version to all version sources in one pass:

  • README.mdVERSION: XX.YY.ZZ
  • Joomla XML manifests<version>XX.YY.ZZ</version>
  • Dolibarr mod files$this->version
  • composer.json"version": "XX.YY.ZZ"

Files Changed

  • cli/version_bump.php
## Problem `version_bump.php` reads from both README.md and manifest XML to find the base version, but only writes the bumped version back to README.md. This creates a window where README and manifests are out of sync, requiring a separate `version_set_platform.php` call. ## Solution `version_bump.php` now writes the bumped version to all version sources in one pass: - **README.md** — `VERSION: XX.YY.ZZ` - **Joomla XML manifests** — `<version>XX.YY.ZZ</version>` - **Dolibarr mod files** — `$this->version` - **composer.json** — `"version": "XX.YY.ZZ"` ## Files Changed - `cli/version_bump.php`
jmiller added the phpci-cd labels 2026-05-26 17:12:02 +00:00
Author
Owner

Branch created: feature/152-fix-version-bump-php-only-writes-to-read

git fetch origin
git checkout feature/152-fix-version-bump-php-only-writes-to-read
Branch created: [`feature/152-fix-version-bump-php-only-writes-to-read`](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/src/branch/feature/152-fix-version-bump-php-only-writes-to-read) ```bash git fetch origin git checkout feature/152-fix-version-bump-php-only-writes-to-read ```
Sign in to join this conversation.
No labels ci-cd php
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#152