Merge pull request #117839 from pacoxu/respect-goproxy

respect local GOPROXY setting in build/common.sh
This commit is contained in:
Kubernetes Prow Robot 2023-05-06 08:35:24 -07:00 committed by GitHub
commit adf16ac405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,7 @@ GROUP_ID=$(id -g)
DOCKER_OPTS=${DOCKER_OPTS:-""}
IFS=" " read -r -a DOCKER <<< "docker ${DOCKER_OPTS}"
DOCKER_HOST=${DOCKER_HOST:-""}
GOPROXY=${GOPROXY:-""}
# This will canonicalize the path
KUBE_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd -P)
@ -502,6 +503,7 @@ function kube::build::run_build_command_ex() {
"--name=${container_name}"
"--user=$(id -u):$(id -g)"
"--hostname=${HOSTNAME}"
"-e=GOPROXY=${GOPROXY}"
"${DOCKER_MOUNT_ARGS[@]}"
)