build: fail-fast release gate for baked mother SSH key #114
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "release-gate-mother-key"
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?
Why
#113 added a guard in the image-assembly step that refuses to bake the mother SSH key into a
BUILD_CHANNEL=releaseimage. But that guard sits deep in assembly — a release build would fetch FreeBSD, build everything, mount, and populate the image before hitting it.What
Add the same check to
check_release_gate()(which runs early, only for release builds). A release build with/home/clawdie/.ssh/osa-mother-2026present on the host now aborts in seconds with a clear message, instead of after a full build. The assembly-time guard from #113 stays in place as defense in depth.Note on the (c) item
BUILD_CHANNELalready defaults todev(build.cfg:17—BUILD_CHANNEL="${BUILD_CHANNEL:-dev}"), so the manifest is never empty and no default change was needed. This PR is the fail-fast guard only.Test
sh -n build.shclean. Guard mirrors the existing_release_errorspattern in the same function.🤖 Generated with Claude Code