fix(justfile): run create-release cargo lock-sync in docker #453
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/BUNYIP-456-create-release-docker-cargo"
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?
What
create-releasenow runs the member-scopedcargo updatelock-sync inside the pinnedrust-builder-glibcimage instead of on the host, and the redundantcreate-release-containerrecipe is deleted.Why
Every bunyip dev box is deliberately toolchain-less (
CLAUDE.md: "Dev boxes have no local Rust toolchain, so runjust check-container"). Sojust create-release <bump>died at the cargo step withCommand 'cargo' not foundAFTER it had already created therelease/vX.Y.Zbranch and staged the version bump, leaving a half-done release to unwind by hand. The two recipes (create-releasehost /create-release-containerdocker) were kept in sync by hand per BUNYIP-292; the host variant served no actual box and was pure footgun + maintenance burden.Change
create-release: addedlet repo = justfile_directory(), awhich dockerfail-fast guard that trips BEFORE any git mutation, and swapped the hostcargo updateline for the containerizeddocker run ... rust-builder-glibc ... cargo update --package ...block (mirrorscheck-container's registry + target mounts; runs online so cargo can resolve the dunite-core git dep). Every git / fj step still runs on the host so it keeps the host ssh key + fjkeys.json.create-release-container(now identical) and its "keep in sync" contract.CLAUDE.md: documents the single docker-by-default recipe; dropped thecreate-release-containerreference (its only mention).Verify
just --listparses cleanly; the[release]group shows the singlecreate-releaserecipe with a one-line summary.create-release-containerblock, so its behaviour is unchanged.Closes BUNYIP-456.