mirror of https://github.com/k3s-io/k3s
Set GOROOT
parent
99a6a8ab16
commit
5217a502d1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue