Report the module version when no release build set one #4

Merged
mikluko merged 1 commit from buildinfo-version into main 2026-11-13 22:34:19 +00:00
Owner

A build made with go install or go tool gets no -X main.version, so -version printed 0.0.0 while the binary's build info held the module version.

The leading v is dropped: release builds print 0.2.1, and one release should print one string however it was built. A pseudo-version and (devel) are printed as Go records them, with no return to 0.0.0.

A build made with `go install` or `go tool` gets no `-X main.version`, so `-version` printed `0.0.0` while the binary's build info held the module version. The leading `v` is dropped: release builds print `0.2.1`, and one release should print one string however it was built. A pseudo-version and `(devel)` are printed as Go records them, with no return to `0.0.0`.
Report the module version when no release build set one
All checks were successful
CI / changelog (pull_request) Successful in 5s
CI / test (pull_request) Successful in 33s
c95feb749a
A build made with `go install` or `go tool` gets no `-X main.version`, so
`-version` printed 0.0.0 while the binary's build info held the module
version.

The leading "v" is dropped: release builds print 0.2.1, and one release
should print one string however it was built. A pseudo-version and
"(devel)" are printed as Go records them, with no return to 0.0.0.

Assisted-By: Claude <noreply@anthropic.com>
mikluko deleted branch buildinfo-version 2026-11-13 22:34:19 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/gascity-jmap-pack!4
No description provided.