Report the Go build info version when linker flags set none (closes #422)
check / check (push) Successful in 10m44s

A binary from go install, the README's first command, reported itself as version dev, a development build, although Go had recorded the tag it was built from. When the linker flags leave the version, commit or commit date unset, they are now filled in from the Go build info, so such a binary reports its tag and counts as a release. Builds through make, script/docker and goreleaser are unchanged.

Model: opus-5-5
This commit was merged in pull request #444.
This commit is contained in:
clawbot committed 2026-11-11 05:35:53 +01:00
1 parent cdcbe8adfd
commit d6eed26482
6 files changed
+207 -21

No files matched your search

+1
View File
@@ -24,6 +24,7 @@ require (
github.com/stretchr/testify v1.11.1
go.uber.org/dig v1.19.0
go.uber.org/fx v1.24.0
golang.org/x/mod v0.29.0
golang.org/x/sync v0.18.0
golang.org/x/sys v0.38.0
golang.org/x/term v0.37.0