From 70d72f340f2de247d790dbe1ca445db400cb8ad3 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 6 Jun 2021 23:07:23 +0200 Subject: [PATCH] outpost: fix default value for buildHash Signed-off-by: Jens Langhammer --- outpost/pkg/version.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/outpost/pkg/version.go b/outpost/pkg/version.go index d21493f43..cd19ac00a 100644 --- a/outpost/pkg/version.go +++ b/outpost/pkg/version.go @@ -8,7 +8,11 @@ import ( const VERSION = "2021.5.4" func BUILD() string { - return os.Getenv("GIT_BUILD_HASH") + build := os.Getenv("GIT_BUILD_HASH") + if build == "" { + return "tagged" + } + return build } func UserAgent() string {