mirror of https://github.com/k3s-io/k3s
Merge pull request #46419 from bruceauyeung/k8s-branch-fix-make-release-doesnt-respect-go-build-flags
Automatic merge from submit-queue (batch tested with PRs 44061, 46614, 46419, 46628, 46134) fix make release/quick-release doesn't respect go build flags **What this PR does / why we need it**: k8s build process run `make cross` in a docker container, so we have to pass make command line variables to docker container, then each environment variable in docker container will be transformed into a makefile variable with the same name and value. with this PR, `make release GOFLAGS=xx GOLDFLAGS=xx GOGCFLAGS=xx`, `make quick-release GOFLAGS=xx GOLDFLAGS=xx GOGCFLAGS=xx` will work as expected **Which issue this PR fixes**: fixes #46274pull/6/head
commit
47ba1a6c76
|
@ -558,6 +558,9 @@ function kube::build::run_build_command_ex() {
|
||||||
--env "KUBE_FASTBUILD=${KUBE_FASTBUILD:-false}"
|
--env "KUBE_FASTBUILD=${KUBE_FASTBUILD:-false}"
|
||||||
--env "KUBE_BUILDER_OS=${OSTYPE:-notdetected}"
|
--env "KUBE_BUILDER_OS=${OSTYPE:-notdetected}"
|
||||||
--env "KUBE_VERBOSE=${KUBE_VERBOSE}"
|
--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'
|
# If we have stdin we can run interactive. This allows things like 'shell.sh'
|
||||||
|
|
Loading…
Reference in New Issue