From 0664a5d1d9080f4d3e4ca77b4d219fba7bf50019 Mon Sep 17 00:00:00 2001 From: Artem Ervits Date: Mon, 3 Aug 2020 13:20:59 -0400 Subject: [PATCH] cli: change label on printed build revision Fixes #52249 Release note (cli change): update label used for commit ID in printed version info --- pkg/cli/cli.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/cli/cli.go b/pkg/cli/cli.go index c578fd28b89a..ea0074aa7505 100644 --- a/pkg/cli/cli.go +++ b/pkg/cli/cli.go @@ -141,18 +141,18 @@ Output build version information. RunE: func(cmd *cobra.Command, args []string) error { info := build.GetInfo() tw := tabwriter.NewWriter(os.Stdout, 2, 1, 2, ' ', 0) - fmt.Fprintf(tw, "Build Tag: %s\n", info.Tag) - fmt.Fprintf(tw, "Build Time: %s\n", info.Time) - fmt.Fprintf(tw, "Distribution: %s\n", info.Distribution) - fmt.Fprintf(tw, "Platform: %s", info.Platform) + fmt.Fprintf(tw, "Build Tag: %s\n", info.Tag) + fmt.Fprintf(tw, "Build Time: %s\n", info.Time) + fmt.Fprintf(tw, "Distribution: %s\n", info.Distribution) + fmt.Fprintf(tw, "Platform: %s", info.Platform) if info.CgoTargetTriple != "" { fmt.Fprintf(tw, " (%s)", info.CgoTargetTriple) } fmt.Fprintln(tw) - fmt.Fprintf(tw, "Go Version: %s\n", info.GoVersion) - fmt.Fprintf(tw, "C Compiler: %s\n", info.CgoCompiler) - fmt.Fprintf(tw, "Build SHA-1: %s\n", info.Revision) - fmt.Fprintf(tw, "Build Type: %s\n", info.Type) + fmt.Fprintf(tw, "Go Version: %s\n", info.GoVersion) + fmt.Fprintf(tw, "C Compiler: %s\n", info.CgoCompiler) + fmt.Fprintf(tw, "Build Commit ID: %s\n", info.Revision) + fmt.Fprintf(tw, "Build Type: %s\n", info.Type) return tw.Flush() }, }