Fix version not being set properly during build.
Closes #170. This release will be backported and 0.4.4 re-released.
This commit is contained in:
parent
c82c0eb9e1
commit
4df26a0922
|
@ -627,7 +627,7 @@ func makeBuilder(cmd string, platform Platform) func() error {
|
|||
|
||||
fmt.Println("Building", platform.PlatformBin(cmd))
|
||||
return sh.RunWith(map[string]string{"CGO_ENABLED": "0", "GOOS": platform.OS, "GOARCH": platform.Arch},
|
||||
"go", "build", "-a", "-ldflags", fmt.Sprintf("-extldflags '-static' -X version.Version=%s", version),
|
||||
"go", "build", "-a", "-ldflags", fmt.Sprintf("-extldflags '-static' -X main.Version=%s", version),
|
||||
"-o", platform.PlatformBin(cmd), cmdSrc)
|
||||
}
|
||||
return f
|
||||
|
|
Loading…
Reference in New Issue