Set GOCACHE (1.10) as a subdir of GOPATH

This commit is contained in:
Tim Hockin 2018-04-03 16:35:43 -07:00
parent 27045d3fcd
commit c773e88941

View File

@ -355,6 +355,7 @@ kube::golang::setup_env() {
kube::golang::create_gopath_tree
export GOPATH="${KUBE_GOPATH}"
export GOCACHE="${KUBE_GOPATH}/cache"
# Append KUBE_EXTRA_GOPATH to the GOPATH if it is defined.
if [[ -n ${KUBE_EXTRA_GOPATH:-} ]]; then