build: Consistently use 8 hash digits in git describe
This might otherwise differ between builds depending on branches present in the repository and the Git version in use (?).
This commit is contained in:
parent
4f06708330
commit
e0c8865a45
2
build.go
2
build.go
|
@ -861,7 +861,7 @@ func getReleaseVersion() (string, error) {
|
|||
|
||||
func getGitVersion() (string, error) {
|
||||
// The current version as Git sees it
|
||||
bs, err := runError("git", "describe", "--always", "--dirty")
|
||||
bs, err := runError("git", "describe", "--always", "--dirty", "--abbrev=8")
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue