fix build version

This commit is contained in:
therecipe 2017-05-16 17:31:16 +02:00
parent ee8fb89908
commit 7db0e6284d

View file

@ -34,7 +34,7 @@ func Update() {
hash = strings.TrimSpace(utils.RunCmdOptional(cmd, "get git hash"))
}
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\"")
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\"")
Prep()
}
@ -52,5 +52,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", "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\"")
}