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

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