mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Make sure GOPATH/bin is in PATH
This commit is contained in:
parent
7f57478345
commit
7d87eec437
@ -366,13 +366,16 @@ kube::golang::setup_env() {
|
||||
|
||||
kube::golang::create_gopath_tree
|
||||
|
||||
export GOPATH=${KUBE_GOPATH}
|
||||
export GOPATH="${KUBE_GOPATH}"
|
||||
|
||||
# Append KUBE_EXTRA_GOPATH to the GOPATH if it is defined.
|
||||
if [[ -n ${KUBE_EXTRA_GOPATH:-} ]]; then
|
||||
GOPATH="${GOPATH}:${KUBE_EXTRA_GOPATH}"
|
||||
fi
|
||||
|
||||
# Make sure our own Go binaries are in PATH.
|
||||
export PATH="${KUBE_GOPATH}/bin:${PATH}"
|
||||
|
||||
# Change directories so that we are within the GOPATH. Some tools get really
|
||||
# upset if this is not true. We use a whole fake GOPATH here to collect the
|
||||
# resultant binaries. Go will not let us use GOBIN with `go install` and
|
||||
|
Loading…
Reference in New Issue
Block a user