mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
Merge pull request #5527 from vmarmol/e2e
Revert #5479, don't force no cgo.
This commit is contained in:
commit
278b741203
@ -296,13 +296,13 @@ kube::golang::build_binaries() {
|
|||||||
if [[ ${GOOS} == "windows" ]]; then
|
if [[ ${GOOS} == "windows" ]]; then
|
||||||
bin="${bin}.exe"
|
bin="${bin}.exe"
|
||||||
fi
|
fi
|
||||||
CGO_ENABLED=0 go build -installsuffix cgo -o "${output_path}/${bin}" \
|
go build -o "${output_path}/${bin}" \
|
||||||
"${goflags[@]:+${goflags[@]}}" \
|
"${goflags[@]:+${goflags[@]}}" \
|
||||||
-ldflags "${version_ldflags}" \
|
-ldflags "${version_ldflags}" \
|
||||||
"${binary}"
|
"${binary}"
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
CGO_ENABLED=0 go install -installsuffix cgo "${goflags[@]:+${goflags[@]}}" \
|
go install "${goflags[@]:+${goflags[@]}}" \
|
||||||
-ldflags "${version_ldflags}" \
|
-ldflags "${version_ldflags}" \
|
||||||
"${binaries[@]}"
|
"${binaries[@]}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user