Report the Go build info version when linker flags set none (closes #422)
check / check (push) Successful in 9m5s
check / check (push) Successful in 9m5s
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
0d0c76fa24
commit
3187af27c7
6 files changed
+207
-21