Merge pull request #104315 from yselkowitz/goflags-fix

Fix build with multiple GOFLAGS
This commit is contained in:
Kubernetes Prow Robot 2021-08-12 04:59:47 -07:00 committed by GitHub
commit 9c7426e14f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -807,7 +807,7 @@ kube::golang::build_binaries() {
# extract tags if any specified in GOFLAGS
# shellcheck disable=SC2001
gotags="selinux,notest,$(echo "${GOFLAGS:-}" | sed -e 's|.*-tags=\([^-]*\).*|\1|')"
gotags="selinux,notest,$(echo "${GOFLAGS:-}" | sed -ne 's|.*-tags=\([^-]*\).*|\1|p')"
local -a targets=()
local arg