diff --git a/doc/COMPILE.md b/doc/COMPILE.md index 640d599dda555a8fef70ee0c42de29eae022c720..fa83c4fdfedf6fa8529ae6724ade5745f4a5459b 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 392da7ed64bc88a8b92294f2a1f805522433cad1..0ca882ee5f63f9dee0f4ab3f126bcf94ebc82011 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 52f4a85ca0456570b79750ad0faa955a6530e232..0c05cf7472109ac1c1cba2f3cadf518f3219a14d 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