Commit 7d87eec4 authored by Tim Hockin's avatar Tim Hockin

Make sure GOPATH/bin is in PATH

parent 7f574783
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment