Skip to content

Commit

Permalink
respect local GOPROXY setting in build/common.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pacoxu committed May 6, 2023
1 parent 8f3f997 commit e560df7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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[@]}"
)

Expand Down

0 comments on commit e560df7

Please sign in to comment.