Skip to content

Commit

Permalink
Updating GoReleaser to update commit, builddate, and version correclty
Browse files Browse the repository at this point in the history
  • Loading branch information
safaci2000 committed Nov 3, 2023
1 parent ca5a1cd commit 6b7b922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ builds:
- env:
- CGO_ENABLED=0
binary: gdg
ldflags: -s -w -X github.com/esnet/gdg/version.GitCommit={{ .Commit }} -X github.com/esnet/gdg/version.BuildDate={{ .Date }} -X github.com/esnet/gdg/version.Version={{ .Tag }}
ldflags: -s -w -X github.com/esnet/gdg/internal/version.GitCommit={{ .Commit }} -X github.com/esnet/gdg/internal/version.BuildDate={{ .Date }} -X github.com/esnet/gdg/internal/version.Version={{ .Tag }}
goos:
- linux
- windows
Expand Down
2 changes: 1 addition & 1 deletion internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
var GitCommit string

// Version returns the main version number that is being run at the moment.
const Version = "0.5.1"
var Version = "0.5.1"

// BuildDate returns the date the binary was built
var BuildDate = ""
Expand Down

0 comments on commit 6b7b922

Please sign in to comment.