Commit 900deca
fix: stamp a real version into the docker latest image (#930)
The push_to_docker_latest job had no checkout step, so
docker/build-push-action built from the remote Git context, which
BuildKit materializes without a .git directory. Inside the image
`git describe --tags` then failed with "fatal: not a git repository" and
main.airVersion was stamped empty, and hack/check.sh's `git diff --cached`
failed the same way.
Check out the repo with full history and build from the local context so
git works, and fall back to "dev" in the Makefile so any other
git-less build still produces a usable version string.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 208af6c commit 900deca
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
76 | 83 | | |
77 | 84 | | |
78 | 85 | | |
| |||
92 | 99 | | |
93 | 100 | | |
94 | 101 | | |
| 102 | + | |
95 | 103 | | |
96 | 104 | | |
97 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
0 commit comments