Skip to content

Commit

Permalink
KUBE_EXTRA_GOPATH to append to the GOPATH
Browse files Browse the repository at this point in the history
So you can add your own package to the GOPATH outside of the kube tree
  • Loading branch information
eparis committed Sep 10, 2014
1 parent a6e4d77 commit 35f03d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hack/config-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,13 @@ kube::setup_go_environment() {
fi
fi

GOPATH=${KUBE_TARGET}
# Append KUBE_EXTRA_GOPATH to the GOPATH if it is defined.
if [[ -n ${KUBE_EXTRA_GOPATH:-} ]]; then
GOPATH=${GOPATH}:${KUBE_EXTRA_GOPATH}
fi
# Set GOPATH to point to the tree maintained by `godep`.
GOPATH="${KUBE_TARGET}:${KUBE_REPO_ROOT}/Godeps/_workspace"
GOPATH="${GOPATH}:${KUBE_REPO_ROOT}/Godeps/_workspace"
export GOPATH

# Unset GOBIN in case it already exists in the current session.
Expand Down

0 comments on commit 35f03d4

Please sign in to comment.