You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify the building process for end users. (#768)
Use debug.ReadBuildInfo() to generate Version.
Before:
$ CGO_ENABLED=0 go install ./cmd/goatcounter
$ goatcounter version
version=dev; go=go1.23.1; GOOS=linux; GOARCH=amd64; race=false; cgo=false
After:
$ CGO_ENABLED=0 go install ./cmd/goatcounter
$ goatcounter version
version=535cf676f9a3_2024-09-23T18:24:51Z; go=go1.23.1; GOOS=linux; GOARCH=amd64; race=false; cgo=false
After, with a locally modified file:
$ CGO_ENABLED=0 go install ./cmd/goatcounter
$ goatcounter version
version=8ab2fe057181_2024-09-23T18:49:30Z-dev; go=go1.23.1; GOOS=linux; GOARCH=amd64; race=false; cgo=false
Technically this variable should live inside cmd/goatcounter but that
would be a more significant refactoring.
0 commit comments