bug: update-server.yml packages Joomla extensions as flat directories instead of nested ZIPs #167
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
The
update-server.ymlworkflow builds install packages with a naivecd src && zip -rwhich puts sub-extension directories flat inside the ZIP. Joomla package extensions require sub-extensions as nested ZIP files insidepackages/(e.g.,packages/com_mokojoomgallery.zip).Impact
Breaking — Joomla update installer fails with "Install path does not exist" because it expects
packages/com_mokojoomgallery.zipbut findspackages/com_mokojoomgallery/(a directory).All package-type Joomla extensions are affected.
Root Cause
update-server.ymlline ~210:This zips the entire
src/tree as-is. For Joomla packages, thepackages/subdirectories need to be individually zipped first, then the outer package ZIP created with those nested ZIPs.Fix
The workflow should use
cli/package_build.phpfrom moko-platform (which already exists) instead of the inline zip command. For Joomla package extensions (<extension type="package">),package_build.phpshould:pkg_*.xml)<files folder="packages">entries.zipAffected Repos
All Joomla package-type extensions:
Branch created:
feature/167-bug-update-server-yml-packages-joomla-exCross-ref: MokoConsulting/MokoJoomGallery#36
Proof
Replaced 68-line inline zip+curl block in update-server.yml with
release_package.phpCLI call.release_package.phpcorrectly handles Joomla package extensions by:Pushed to: