mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Remove commit hash uppercase in version and User-Agent strings
This commit is contained in:
parent
cf823f9dcf
commit
3f788efff5
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user