Просмотр исходного кода

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 (?).
Jakob Borg 5 лет назад
Родитель
Сommit
e0c8865a45
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      build.go

+ 1 - 1
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
 	}