fix(release): allow controller protocol self-upgrade

This commit is contained in:
2026-08-11 00:01:47 +00:00
parent 6bf8340a8a
commit 0c8185cfa9
5 changed files with 32 additions and 6 deletions
+4 -1
View File
@@ -65,7 +65,10 @@ export const upgradeReleaseController = async (options: {
}): Promise<{ commitSha: string; workspace: string }> => {
const commitSha = await options.workspaceManager.resolveCommit(options.sourceMode, options.sourceRef);
const workspace = await options.workspaceManager.prepare(commitSha);
const manifest = await readReleaseManifest(workspace.root);
// The target controller, rather than this bootstrap CLI, owns the target
// controller protocol. Keep all manifest/schema/component checks while
// allowing this explicit self-upgrade boundary to cross protocol versions.
const manifest = await readReleaseManifest(workspace.root, { allowControllerUpgrade: true });
assertReleaseComponents(manifest, ['release-controller']);
const build = await options.buildRunner.run(
buildReleaseControllerCommands(workspace.root, workspace.needsInstall, options.config)