From e560df770e35876f16d6ec496d505cde5ce8a1ce Mon Sep 17 00:00:00 2001 From: Paco Xu Date: Sat, 6 May 2023 17:57:12 +0800 Subject: [PATCH] respect local GOPROXY setting in build/common.sh --- build/common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/common.sh b/build/common.sh index 0a73a2b336a..6f3f673b622 100755 --- a/build/common.sh +++ b/build/common.sh @@ -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[@]}" )