mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	respect local GOPROXY setting in build/common.sh
This commit is contained in:
		@@ -30,6 +30,7 @@ GROUP_ID=$(id -g)
 | 
				
			|||||||
DOCKER_OPTS=${DOCKER_OPTS:-""}
 | 
					DOCKER_OPTS=${DOCKER_OPTS:-""}
 | 
				
			||||||
IFS=" " read -r -a DOCKER <<< "docker ${DOCKER_OPTS}"
 | 
					IFS=" " read -r -a DOCKER <<< "docker ${DOCKER_OPTS}"
 | 
				
			||||||
DOCKER_HOST=${DOCKER_HOST:-""}
 | 
					DOCKER_HOST=${DOCKER_HOST:-""}
 | 
				
			||||||
 | 
					GOPROXY=${GOPROXY:-""}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# This will canonicalize the path
 | 
					# This will canonicalize the path
 | 
				
			||||||
KUBE_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd -P)
 | 
					KUBE_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd -P)
 | 
				
			||||||
@@ -502,6 +503,7 @@ function kube::build::run_build_command_ex() {
 | 
				
			|||||||
    "--name=${container_name}"
 | 
					    "--name=${container_name}"
 | 
				
			||||||
    "--user=$(id -u):$(id -g)"
 | 
					    "--user=$(id -u):$(id -g)"
 | 
				
			||||||
    "--hostname=${HOSTNAME}"
 | 
					    "--hostname=${HOSTNAME}"
 | 
				
			||||||
 | 
					    "-e=GOPROXY=${GOPROXY}"
 | 
				
			||||||
    "${DOCKER_MOUNT_ARGS[@]}"
 | 
					    "${DOCKER_MOUNT_ARGS[@]}"
 | 
				
			||||||
  )
 | 
					  )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user