diff --git a/build/common.sh b/build/common.sh index 8db8983abc4..9ec643b1d98 100755 --- a/build/common.sh +++ b/build/common.sh @@ -558,6 +558,9 @@ function kube::build::run_build_command_ex() { --env "KUBE_FASTBUILD=${KUBE_FASTBUILD:-false}" --env "KUBE_BUILDER_OS=${OSTYPE:-notdetected}" --env "KUBE_VERBOSE=${KUBE_VERBOSE}" + --env "GOFLAGS=${GOFLAGS:-}" + --env "GOLDFLAGS=${GOLDFLAGS:-}" + --env "GOGCFLAGS=${GOGCFLAGS:-}" ) # If we have stdin we can run interactive. This allows things like 'shell.sh'