mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
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:
commit
152226c557
@ -685,9 +685,7 @@ kube::golang::build_binaries() {
|
|||||||
local host_platform
|
local host_platform
|
||||||
host_platform=$(kube::golang::host_platform)
|
host_platform=$(kube::golang::host_platform)
|
||||||
|
|
||||||
# Use eval to preserve embedded quoted strings.
|
|
||||||
local goflags goldflags goasmflags gogcflags
|
local goflags goldflags goasmflags gogcflags
|
||||||
eval "goflags=(${GOFLAGS:-})"
|
|
||||||
goldflags="${GOLDFLAGS:-} -s -w $(kube::version::ldflags)"
|
goldflags="${GOLDFLAGS:-} -s -w $(kube::version::ldflags)"
|
||||||
goasmflags="-trimpath=${KUBE_ROOT}"
|
goasmflags="-trimpath=${KUBE_ROOT}"
|
||||||
gogcflags="${GOGCFLAGS:-} -trimpath=${KUBE_ROOT}"
|
gogcflags="${GOGCFLAGS:-} -trimpath=${KUBE_ROOT}"
|
||||||
|
@ -175,7 +175,6 @@ done
|
|||||||
shift $((OPTIND - 1))
|
shift $((OPTIND - 1))
|
||||||
|
|
||||||
# Use eval to preserve embedded quoted strings.
|
# Use eval to preserve embedded quoted strings.
|
||||||
eval "goflags=(${GOFLAGS:-})"
|
|
||||||
eval "testargs=(${KUBE_TEST_ARGS:-})"
|
eval "testargs=(${KUBE_TEST_ARGS:-})"
|
||||||
|
|
||||||
# Used to filter verbose test output.
|
# Used to filter verbose test output.
|
||||||
|
@ -35,9 +35,6 @@ fi
|
|||||||
# See https://github.com/golang/go/issues/16086 for details.
|
# See https://github.com/golang/go/issues/16086 for details.
|
||||||
go install ./cmd/...
|
go install ./cmd/...
|
||||||
|
|
||||||
# Use eval to preserve embedded quoted strings.
|
|
||||||
eval "goflags=(${GOFLAGS:-})"
|
|
||||||
|
|
||||||
# Filter out arguments that start with "-" and move them to goflags.
|
# Filter out arguments that start with "-" and move them to goflags.
|
||||||
targets=()
|
targets=()
|
||||||
for arg; do
|
for arg; do
|
||||||
|
Loading…
Reference in New Issue
Block a user