Merge pull request #71198 from cofyc/go1.11-GOFLAGS-env

No need to pass GOFLAGS to $goflags variables with go 1.11
This commit is contained in:
Kubernetes Prow Robot
2019-01-09 23:35:09 -08:00
committed by GitHub
3 changed files with 0 additions and 6 deletions

View File

@@ -685,9 +685,7 @@ kube::golang::build_binaries() {
local host_platform
host_platform=$(kube::golang::host_platform)
# Use eval to preserve embedded quoted strings.
local goflags goldflags goasmflags gogcflags
eval "goflags=(${GOFLAGS:-})"
goldflags="${GOLDFLAGS:-} -s -w $(kube::version::ldflags)"
goasmflags="-trimpath=${KUBE_ROOT}"
gogcflags="${GOGCFLAGS:-} -trimpath=${KUBE_ROOT}"