diff --git a/Makefile b/Makefile index 7fd5caff8e7..aff4a0aad93 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ COMPONENTS=cloud \ .EXPORT_ALL_VARIABLES: OUT_DIR ?= _output/local -BUILD_WITH_CONTAINER?=true +BUILD_WITH_CONTAINER?=false RUN = hack/make-rules/build_with_container.sh define ALL_HELP_INFO diff --git a/hack/lib/get_golang.sh b/hack/lib/get_golang.sh index c79947b9f27..f5f8db9d104 100755 --- a/hack/lib/get_golang.sh +++ b/hack/lib/get_golang.sh @@ -30,6 +30,8 @@ kubeedge::golang::verify_golang_version() { wget https://golang.google.cn/dl/go1.19.5.linux-amd64.tar.gz fi tar -C /usr/local -xzf go1.19.5.linux-amd64.tar.gz + cp /usr/local/go/bin/go /usr/local/bin/go + echo 'export PATH=$PATH:/usr/local/go/bin' >> /root/.profile echo 'export GOPATH=/root/go' >> /root/.profile echo 'export GOBIN=$GOPATH/bin' >> /root/.profile