mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
contrib/go2docker: fix go build command line
This commit is contained in:
parent
1111510b7a
commit
ec3a7c5a4b
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user