From 3ef2e09961c447165aabce9034870b5d54075062 Mon Sep 17 00:00:00 2001 From: Rintaro Okamura Date: Sat, 28 Sep 2024 18:30:09 +0900 Subject: [PATCH] fix: fix var name for commit hash (#1150) that used for `version` subcommand Signed-off-by: Rintaro Okamura --- pkg/version/version.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/version/version.go b/pkg/version/version.go index 612ab206..f69034a5 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -11,7 +11,7 @@ var Version = "" // Additional Regal metadata to be injected at build time. var ( - Vcs = "" + Commit = "" Timestamp = "" Hostname = "" ) @@ -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), }