From c9b324147b6781f06b1edbbb67ef9afbb3b0d1f2 Mon Sep 17 00:00:00 2001 From: therecipe Date: Tue, 16 May 2017 17:38:52 +0200 Subject: [PATCH] fix build version again --- internal/cmd/setup/update.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/cmd/setup/update.go b/internal/cmd/setup/update.go index d8d4281a..118f151b 100644 --- a/internal/cmd/setup/update.go +++ b/internal/cmd/setup/update.go @@ -45,6 +45,8 @@ func Upgrade() { utils.RunCmd(exec.Command("go", "clean", "-i", "github.com/therecipe/qt/..."), "run \"go clean\"") utils.RemoveAll(utils.GoQtPkgPath()) + utils.RunCmd(exec.Command("go", "get", "-v", "-d", "github.com/therecipe/qt"), "run \"go get\"") + hash := "please install git" if _, err := exec.LookPath("git"); err == nil { cmd := exec.Command("git", "rev-parse", "--verify", "HEAD") @@ -52,5 +54,5 @@ func Upgrade() { hash = strings.TrimSpace(utils.RunCmdOptional(cmd, "get git hash")) } - utils.RunCmd(exec.Command("go", "get", "-v", fmt.Sprintf("-ldflags=\"-X=github.com/therecipe/qt/internal/cmd.buildVersion=%v\"", hash), fmt.Sprintf("github.com/therecipe/qt/cmd/...")), "run \"go get\"") + utils.RunCmd(exec.Command("go", "install", "-v", fmt.Sprintf("-ldflags=\"-X=github.com/therecipe/qt/internal/cmd.buildVersion=%v\"", hash), fmt.Sprintf("github.com/therecipe/qt/cmd/...")), "run \"go install\"") }