Set GOROOT

pull/6/head
Tim Hockin 2016-08-12 21:35:21 -07:00
parent 99a6a8ab16
commit 5217a502d1
1 changed files with 3 additions and 0 deletions

View File

@ -348,6 +348,9 @@ kube::golang::setup_env() {
subdir=$(kube::realpath . | sed "s|$KUBE_ROOT||")
cd "${KUBE_GOPATH}/src/${KUBE_GO_PACKAGE}/${subdir}"
# Set GOROOT so binaries that parse code can work properly.
export GOROOT=$(go env GOROOT)
# Unset GOBIN in case it already exists in the current session.
unset GOBIN