From 396695af15215981ab5cd801acc3933f26495a7c Mon Sep 17 00:00:00 2001 From: bruceauyeung Date: Thu, 25 May 2017 17:05:09 +0800 Subject: [PATCH] fix make release/quick-release doesn't respect go build flags --- build/common.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/common.sh b/build/common.sh index 8db8983abc..9ec643b1d9 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'