Skip to content

Commit

Permalink
fix: fix var name for commit hash (#1150)
Browse files Browse the repository at this point in the history
that used for `version` subcommand

Signed-off-by: Rintaro Okamura <[email protected]>
  • Loading branch information
rinx authored Sep 28, 2024
1 parent e205cd9 commit 3cba1c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var Version = ""

// Additional Regal metadata to be injected at build time.
var (
Vcs = ""
Commit = ""
Timestamp = ""
Hostname = ""
)
Expand Down Expand Up @@ -54,7 +54,7 @@ func New() Info {
Version: unknownString(Version),
GoVersion: goVersion,
Platform: platform,
Commit: unknownString(Vcs),
Commit: unknownString(Commit),
Timestamp: unknownString(Timestamp),
Hostname: unknownString(Hostname),
}
Expand Down

0 comments on commit 3cba1c6

Please sign in to comment.