docs(freebsd): stamp zot build version in handoff (Sam & Codex) #80

Merged
clawdie merged 1 commit from docs/zot-build-stamp-handoff into main 2026-06-15 19:11:02 +02:00

View file

@ -53,14 +53,16 @@ cargo test --workspace # confirm green on real FreeBSD; report output
cargo clippy --workspace --all-targets -- -D warnings
# zot agent binary (Go) — the agent has no FreeBSD release, so build it.
# This is the exact command clawdie-iso's preflight prints; ZOT_VERSION
# defaults to v0.2.29. Output must land at bin/zot (the ISO default artifact
# path). Check out the tag you intend to ship: ISO_VERSION auto-tracks the
# zot checkout via `git describe`, so the checked-out ref becomes the ISO
# version.
# Use the version-stamped Makefile path, not a bare `go build`, so
# `./bin/zot --version` matches the shipped tag. Output must land at bin/zot
# (the ISO default artifact path). Check out the tag you intend to ship:
# ISO_VERSION auto-tracks the zot checkout via `git describe`, so the
# checked-out ref becomes the ISO version.
cd ../zot
git checkout v0.2.29
GOOS=freebsd GOARCH=amd64 go build -trimpath -o bin/zot ./cmd/zot
ZOT_BUILD_VERSION="${ZOT_VERSION:-v0.2.29}"
VERSION="${ZOT_BUILD_VERSION#v}" make build
./bin/zot --version
```
After both builds, these must exist (the ISO preflight checks each):