Remove commit hash uppercase in version and User-Agent strings

This commit is contained in:
Juan Carlos Mejías Rodríguez 2019-08-09 15:17:55 -04:00
parent cf823f9dcf
commit 3f788efff5

View File

@ -3,7 +3,6 @@ package common
import ( import (
"fmt" "fmt"
"runtime" "runtime"
"strings"
) )
var ( var (
@ -28,7 +27,7 @@ func BuildVersionString() string {
} }
if commitHash != "" { if commitHash != "" {
version += "+" + strings.ToUpper(commitHash) version += "+" + commitHash
} }
return fmt.Sprintf("%s %s %s BuildDate: %s", programName, version, osArch, buildDate) return fmt.Sprintf("%s %s %s BuildDate: %s", programName, version, osArch, buildDate)
@ -40,7 +39,7 @@ func BuildUseAgentString() string {
theVersion = "SNAPSHOT" theVersion = "SNAPSHOT"
} }
if commitHash != "" { if commitHash != "" {
theVersion += "+" + strings.ToUpper(commitHash) theVersion += "+" + commitHash
} }
return fmt.Sprintf("%s %s (%s/%s)", programName, theVersion, runtime.GOOS, runtime.GOARCH) return fmt.Sprintf("%s %s (%s/%s)", programName, theVersion, runtime.GOOS, runtime.GOARCH)