mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 11:48:15 +00:00
Make sure GOPATH/bin is in PATH
This commit is contained in:
@@ -366,13 +366,16 @@ kube::golang::setup_env() {
|
|||||||
|
|
||||||
kube::golang::create_gopath_tree
|
kube::golang::create_gopath_tree
|
||||||
|
|
||||||
export GOPATH=${KUBE_GOPATH}
|
export GOPATH="${KUBE_GOPATH}"
|
||||||
|
|
||||||
# Append KUBE_EXTRA_GOPATH to the GOPATH if it is defined.
|
# Append KUBE_EXTRA_GOPATH to the GOPATH if it is defined.
|
||||||
if [[ -n ${KUBE_EXTRA_GOPATH:-} ]]; then
|
if [[ -n ${KUBE_EXTRA_GOPATH:-} ]]; then
|
||||||
GOPATH="${GOPATH}:${KUBE_EXTRA_GOPATH}"
|
GOPATH="${GOPATH}:${KUBE_EXTRA_GOPATH}"
|
||||||
fi
|
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
|
# 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
|
# 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
|
# resultant binaries. Go will not let us use GOBIN with `go install` and
|
||||||
|
|||||||
Reference in New Issue
Block a user