Report the Go build info version when linker flags set none (closes #422)
check / check (push) Successful in 12m14s
check / check (push) Successful in 12m14s
A `go install` of a tag sets no linker flags, so the binary reported `dev`. Version, commit and commit date that the linker flags leave unset now come from the build info Go records. Go records a pseudo-version for an untagged commit and a `+dirty` suffix for a modified checkout; `IsDevVersion` now counts both as development builds, using `golang.org/x/mod`. Model: opus-5-5
This commit is contained in:
1 parent
aae7fa17ae
commit
ad6d5f24ac
5 files changed
+205
-19