Commit 9d1cec8
fix(build): sync APP_VERSION to 3.1.3 and prefer git tag for version
APP_VERSION was stuck at 3.0.0 because the auto-generated update PRs
for 3.x releases (created by pre_release.yml) were being closed without
merging. GoReleaser-built release binaries correctly embed the version
from the git tag, but local builds via `make build` were reporting
3.0.0 instead of 3.1.3.
Two changes:
- Update APP_VERSION to 3.1.3 (current latest release)
- Make getVersion() try an exact git tag on HEAD before falling back to
APP_VERSION, matching GoReleaser's {{.Version}} behavior. This means
local builds on any tagged commit will always report the correct
release version independently of the APP_VERSION file.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 688c47e commit 9d1cec8
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
360 | 367 | | |
361 | 368 | | |
362 | 369 | | |
| |||
0 commit comments