mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Build statically linked binaryies. With the change to go 1.4, we probably were generating dynamically linked binaries accidentally.
This commit is contained in:
		@@ -296,13 +296,13 @@ kube::golang::build_binaries() {
 | 
			
		||||
          if [[ ${GOOS} == "windows" ]]; then
 | 
			
		||||
            bin="${bin}.exe"
 | 
			
		||||
          fi
 | 
			
		||||
          go build -o "${output_path}/${bin}" \
 | 
			
		||||
          CGO_ENABLED=0 go build -installsuffix cgo -o "${output_path}/${bin}" \
 | 
			
		||||
              "${goflags[@]:+${goflags[@]}}" \
 | 
			
		||||
              -ldflags "${version_ldflags}" \
 | 
			
		||||
              "${binary}"
 | 
			
		||||
        done
 | 
			
		||||
      else
 | 
			
		||||
        go install "${goflags[@]:+${goflags[@]}}" \
 | 
			
		||||
        CGO_ENABLED=0 go install -installsuffix cgo "${goflags[@]:+${goflags[@]}}" \
 | 
			
		||||
            -ldflags "${version_ldflags}" \
 | 
			
		||||
            "${binaries[@]}"
 | 
			
		||||
      fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user