From 7e904ad6291a14190a14bd2039aa957002f4c948 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Mon, 19 Oct 2020 15:16:18 +0800 Subject: [PATCH] set ggo module auto --- doc/COMPILE.md | 2 +- doc/COMPILE_CN.md | 2 +- tools/serving_build.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/COMPILE.md b/doc/COMPILE.md index 640d599d..fa83c4fd 100644 --- a/doc/COMPILE.md +++ b/doc/COMPILE.md @@ -75,7 +75,7 @@ export PATH=$PATH:$GOPATH/bin ## Get go packages ```shell -go env -w GO111MODULE=on +go env -w GO111MODULE=auto go env -w GOPROXY=https://goproxy.cn,direct go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger diff --git a/doc/COMPILE_CN.md b/doc/COMPILE_CN.md index 392da7ed..0ca882ee 100644 --- a/doc/COMPILE_CN.md +++ b/doc/COMPILE_CN.md @@ -72,7 +72,7 @@ export PATH=$PATH:$GOPATH/bin ## 获取 Go packages ```shell -go env -w GO111MODULE=on +go env -w GO111MODULE=auto go env -w GOPROXY=https://goproxy.cn,direct go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger diff --git a/tools/serving_build.sh b/tools/serving_build.sh index 52f4a85c..0c05cf74 100644 --- a/tools/serving_build.sh +++ b/tools/serving_build.sh @@ -22,7 +22,7 @@ function init() { export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin - go env -w GO111MODULE=on + go env -w GO111MODULE=auto go env -w GOPROXY=https://goproxy.cn,direct go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway -- GitLab