chore(manifest): remove deprecated .mokogitea/manifest.xml parser; mokoplatform→mokocli #754
Reference in New Issue
Block a user
Delete Branch "feature/752-chore-deploy-rebuild-redeploy-for-moko-p"
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?
Part of #752 (forge-rebrand gate).
.mokogitea/manifest.xmlis deprecated — the first-classRepoMetadataDB fields are the authoritative repository metadata (see #752 comment). So rather than teach the XML parser the renamedmokocliroot element, remove the dead XML auto-sync path and rebrand the remainingmokoplatformreferences.Changes
services/repository/manifest_sync.go(themanifestXMLparser +SyncMetadataFromCommit)SyncMetadataFromCommitcall on default-branch push (push.go)mokoplatform→mokocliinrepo_manifest.gocomments,v347.gocomment, and themanifest_desclocale stringgofmt-normalizedrepo_manifest.gostruct-tag alignment (pre-existing)Safety verification (metadata ability + update server)
The XML sync was one of three write paths to the first-class fields; the other two remain, and every reader uses the DB — not the XML:
Write paths preserved (coordinating metadata ability):
routers/api/v1/repo/manifest.go→CreateOrUpdateRepoMetadata(PUT /repos/{o}/{r}/manifest+/metadata)routers/web/repo/setting/metadata.go→CreateOrUpdateRepoMetadata(Settings → Metadata)Update server / feeds are DB-sourced (unaffected):
services/updateserver/joomla.go:190,routers/api/v1/licensing/updates.go:167,routers/web/repo/changelog_xml.go:68,routers/api/v1/repo/license_key.go:27all readGetRepoMetadata(DB). The Joomla feed sets defaults first and guardsif manifest != nil, so it degrades gracefully with no metadata. None readmanifest.xml.Existing repos keep their last-synced DB metadata; going forward metadata changes come via API/UI (the deprecation). Repos' now-dead
.mokogitea/manifest.xmlfiles can be cleaned up separately (non-blocking).Build
go build ./services/repository/... ./models/...→ clean; all changed files gofmt-clean.Not in this PR (remain on #752)
Refs #752
https://claude.ai/code/session_01Wsno14cxE49MstXFs9G5KT