Closed thepwagner closed 4 months ago
Replace the logic in Makefile that replaces cmd/ejson/version.go with the current tag.
Makefile
cmd/ejson/version.go
It's more common to inject these variables during linking, instead of generating source code.
Verify like:
$ cat cmd/ejson/version.go package main var VERSION string = "1.5.0" $ goreleaser build --snapshot --rm-dist $ dist/ejson_darwin_arm64/ejson --version ejson version 1.5.1-SNAPSHOT-1ecf7d7
Replace the logic in
Makefile
that replacescmd/ejson/version.go
with the current tag.It's more common to inject these variables during linking, instead of generating source code.
Verify like: