Skip to content
Snippets Groups Projects
Commit 4df26a09 authored by Will Rouesnel's avatar Will Rouesnel
Browse files

Fix version not being set properly during build.

Closes #170.

This release will be backported and 0.4.4 re-released.
parent c82c0eb9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment