bug: release_package.php and version_bump.php fail with source/ entry-point #248
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
CLI tools fail to build packages or bump versions when a repo uses
source/instead ofsrc/as entry-point. TheSourceResolverclass handles the fallback correctly, but:version_bump.phpthrowsClass MokoEnterprise\SourceResolver not foundif composer autoload is stalerelease_package.phpproduces wrong element name (mokowaas-*.zipinstead ofpkg_mokowaas-*.zip) and fails to build the top-level package ZIPRoot Cause
composer dump-autoloadbut the CI runner doesn't do thisentry-pointfrom manifest.xml but the path handling on line 198 may not resolve correctly for all casesGET /repos/{owner}/{repo}/manifest) that returnsentry_point,platform,package_type— the CLI tools should use this instead of parsing XML locallyProposed Fix
require_once __DIR__ . '/../vendor/autoload.php'to CLI entry points (or ensure CliFramework loads it).mokogitea/manifest.xmlparsing when offlinesource/directoryAffected Repos
src/tosource/on 2026-06-06)source/from inception)References
GET /repos/{owner}/{repo}/manifestreturnsentry_pointfieldsource/as primary candidateBranch created:
feature/248-bug-release-package-php-and-version-bump