Skip to content

Commit

Permalink
fix: version for release
Browse files Browse the repository at this point in the history
Must be a var and not a const to be replaced via -X build option
  • Loading branch information
mprimi committed Oct 20, 2022
1 parent d764db7 commit 3e451a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
"github.com/mprimi/golang-cli-template/cmd"
)

var version = "dev"

const (
name = "golang-cli-template"
version = "dev" // Replaced at build time in release
)

func main() {
Expand Down

0 comments on commit 3e451a0

Please sign in to comment.