Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny0826 committed Jul 25, 2019
1 parent 759dea2 commit 5780ca0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
builds:
- env:
- CGO_ENABLED=0
ldflags: -s -X github.com/sunny0826/hamal/cmd.hamalVersion={{.Version}} -X github.com/sunny0826/hamal/cmd.gitCommit={{.Commit}} -X github.com/sunny0826/hamal/cmd.buildDate={{.Date}}
ldflags: -s -X github.com/sunny0826/kubecm/cmd.kubecmVersion={{.Version}} -X github.com/sunny0826/kubecm/cmd.gitCommit={{.Commit}} -X github.com/sunny0826/kubecm/cmd.buildDate={{.Date}}
archives:
- replacements:
darwin: Darwin
Expand Down
6 changes: 3 additions & 3 deletions cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
)

var (
hamalVersion = "unknown"
kubecmVersion = "unknown"
goos = runtime.GOOS
goarch = runtime.GOARCH
gitCommit = "$Format:%H$" // sha1 from git, output of $(git rev-parse HEAD)
Expand All @@ -36,7 +36,7 @@ var (
// version returns the version of kustomize.
type version struct {
// KustomizeVersion is a kustomize binary version.
HamaleVersion string `json:"hamalVersion"`
kubecmVersion string `json:"hamalVersion"`
// GitCommit is a git commit
GitCommit string `json:"gitCommit"`
// BuildDate is a build date of the binary.
Expand All @@ -50,7 +50,7 @@ type version struct {
// getVersion returns version.
func getVersion() version {
return version{
hamalVersion,
kubecmVersion,
gitCommit,
buildDate,
goos,
Expand Down

0 comments on commit 5780ca0

Please sign in to comment.