diff --git a/doc/COMPILE.md b/doc/COMPILE.md index fa83c4fdfedf6fa8529ae6724ade5745f4a5459b..640d599dda555a8fef70ee0c42de29eae022c720 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=auto +go env -w GO111MODULE=on 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 0ca882ee5f63f9dee0f4ab3f126bcf94ebc82011..392da7ed64bc88a8b92294f2a1f805522433cad1 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=auto +go env -w GO111MODULE=on 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 c8d84de3404c443f6eab6ff0642096490dfeceef..bcfc647a199a9f26d7ba1daa74a1cf19c5f7d109 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=auto + go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn,direct go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway