diff --git a/README.md b/README.md index ee9cb363..4f6995ff 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,10 @@ cd kubekey ./build.sh ``` -> Note: Docker needs to be installed before building. +**Note:** + +* Docker needs to be installed before building. +* If you have problem to access `https://proxy.golang.org/` in China mainland, please open the build.sh to use the Go module proxy in China. ## Road Map diff --git a/build.sh b/build.sh index f42f527b..6898e965 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,7 @@ #! /bin/bash docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.14.2-buster go build -v -o kk + +# Using the most trusted Go module proxy in China mainland +# docker run --rm -e GO111MODULE=on -e GOPROXY=https://goproxy.cn -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.14.2-buster go build -v -o kk +