mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Set GOROOT
This commit is contained in:
parent
99a6a8ab16
commit
5217a502d1
@ -348,6 +348,9 @@ kube::golang::setup_env() {
|
|||||||
subdir=$(kube::realpath . | sed "s|$KUBE_ROOT||")
|
subdir=$(kube::realpath . | sed "s|$KUBE_ROOT||")
|
||||||
cd "${KUBE_GOPATH}/src/${KUBE_GO_PACKAGE}/${subdir}"
|
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 in case it already exists in the current session.
|
||||||
unset GOBIN
|
unset GOBIN
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user