Manifest platform auto-detects as nodejs, not go — pin platform in .mokogitea manifest
#753
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?
Observation
During the first real
dev → rcpromotion (2026-07-06),pre-release.yml(run 34688) auto-detected the repo platform and logged:platform_detect.phpclassifies MokoGitea asnodejsbecause of the rootpackage.json(the TypeScript/Vue web frontend), even though MokoGitea is fundamentally a Go server.Impact
pre-releaseitself: release creation there is gated toplatform == joomla*, sonodejsandgoboth skip it — the RC promotion correctly published nothing.platformroutes which version/packaging scheme applies (Joomla stream tags vs npm vs Composer vs Go semver). Being seen asnodejswould route MokoGitea to npm-style versioning rather than the intended scheme. MokoGitea's real release artifacts come fromauto-releaseon merge tomain(stablechannel,mokogiteafork-YY.MM.PP.zip), so nothing is broken today, but the misclassification is latent risk for any flow that branches onplatform.Options
platform: goin the.mokogiteamanifest so detection is overridden. Verify against the versioning strategy thatgois the correct value for MokoGitea (its releases useYY.MM.PP, not Go semver — the "right" platform value may need confirming).MokoCLI/cli/platform_detect.phpto prefer a primary-language signal (Go module / large .go tree) over a rootpackage.jsonwhen both are present, so Go-repos-with-frontends aren't misread asnodejs. Helps every mixed Go+JS repo.Refs
MokoCLI/cli/platform_detect.phphttps://claude.ai/code/session_01Wsno14cxE49MstXFs9G5KT