From 11efb6be5e737f34835939af553617f9c0efece8 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 3 Sep 2020 14:17:12 -0700 Subject: [PATCH] get version from env varaible --- src/install/updateversion.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/install/updateversion.go b/src/install/updateversion.go index 679cfa1c..143aeaf5 100644 --- a/src/install/updateversion.go +++ b/src/install/updateversion.go @@ -3,6 +3,7 @@ package main import ( "fmt" "io/ioutil" + "os" "os/exec" "strings" ) @@ -15,11 +16,7 @@ func main() { } func run() (err error) { - version, err := exec.Command("git", "describe", "--abbrev=0").Output() - if err != nil { - return - } - versionNew := strings.TrimSpace(string(version)) + versionNew := os.Getenv("VERSION") versionHash, err := exec.Command("git", "rev-parse", "--short", "HEAD").Output() if err != nil { return