Public Access
bug: manifest_read.php fails when .mokogitea/manifest.xml is deleted #283
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
manifest_read.phprequires.mokogitea/manifest.xmlto detect the platform (joomla/dolibarr/generic). When this file is deleted (e.g. deprecated in favor of API-managed metadata), the pre-release workflow fails at the "Detect platform" step:This blocks all pre-release builds for repos that have removed
manifest.xml.Affected Repos
d692db4a)Expected Behavior
manifest_read.phpshould fall back to auto-detecting the platform from the source tree:pkg_*.xml,com_*/manifest.xml,*.xmlwith<extension type="...">, orsource/pkg_*.xmlmod*.class.phporupdate.txtCurrent Behavior
Hard fails with exit code 1 if
.mokogitea/manifest.xmldoesn't exist.Suggested Fix
In
manifest_read.php, after the primary check for.mokogitea/manifest.xmlfails, scan for Joomla/Dolibarr markers in the repo root andsource/directory. Return the detected platform and element name derived from the package manifest filename.Clarification: Remove manifest.xml dependency entirely
.mokogitea/manifest.xmlshould NOT be read at all anymore. The platform metadata should come from first-class sources:<extension type="package|component|plugin|module">from the actual Joomla XML manifest (e.g.source/pkg_*.xml,source/packages/com_*/com_*.xml)mod*.class.phpin the source treeAll metadata fields (element name, version, type, platform) should be derived from the extension's own manifest, not from a separate
.mokogitea/manifest.xmlfile. This file is deprecated and should not be required by any mokocli tool.