From 33e1cea4785e14cb5c69e98fc65b3d37f54ca311 Mon Sep 17 00:00:00 2001 From: panfeng Date: Thu, 24 Aug 2023 15:51:16 +0800 Subject: [PATCH] modify makefile and deploy script --- Makefile | 2 +- hack/lib/get_golang.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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