contrib/go2docker: fix go build command line

This commit is contained in:
Johan Euphrosine 2015-01-30 00:16:34 -08:00
parent 1111510b7a
commit ec3a7c5a4b

View File

@ -83,7 +83,7 @@ func main() {
log.Fatalf("failed to create temp directory: %v", err)
}
aout := filepath.Join(tmpDir, basename)
command := append([]string{"go", "build", "-o", aout, "-a", "-tags", "netgo", "-ldflags", "'-w'"}, args...)
command := append([]string{"go", "build", "-o", aout, "-a", "-tags", "netgo", "-installsuffix", "netgo"}, args...)
if _, err := exec.Command(command[0], command[1:]...).Output(); err != nil {
log.Fatalf("failed to run command %q: %v", strings.Join(command, " "), err)
}