docs(homelab-vault): rebuild snippet uses cli/VERSION, not git describe
All checks were successful
ci/woodpecker/push/default Pipeline was successful
All checks were successful
ci/woodpecker/push/default Pipeline was successful
The onboarding runbook's "rebuild the binary" command stamped the version from `git describe --tags --always`, but setup-devvm.sh stamps it from `cli/VERSION`. The v0.8.1 tag is no longer reachable from master, so the describe form silently produced a bare commit sha — diverging from what a provisioner reconcile stamps. Match the canonical source. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
c53e7839e1
commit
65a09dcbc4
1 changed files with 2 additions and 1 deletions
|
|
@ -72,8 +72,9 @@ bw --version # confirm /usr/bin/bw resolves
|
|||
After landing a `cli/` change, rebuild the binary so users pick it up:
|
||||
|
||||
```bash
|
||||
# version is stamped from cli/VERSION, exactly as setup-devvm.sh does it
|
||||
sudo bash -c 'cd /home/wizard/code/infra/cli && \
|
||||
go build -ldflags "-X main.version=$(git -C /home/wizard/code/infra describe --tags --always 2>/dev/null || echo dev)" \
|
||||
go build -ldflags "-X main.version=$(cat VERSION 2>/dev/null || echo dev)" \
|
||||
-o /usr/local/bin/homelab .'
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue