docs(freebsd): stamp zot build version in handoff (Sam & Codex) #80
1 changed files with 8 additions and 6 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue