From 0c825c65d482ccf6d2e8844458ef36dbb8a4541c Mon Sep 17 00:00:00 2001 From: lishuang Date: Sun, 20 Mar 2022 16:18:43 +0800 Subject: [PATCH] Change the default goproxy. --- Dockerfile | 2 +- build/pack/build.bat | 2 +- build/pack/build.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index bc11e65..e03b30f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ COPY . /data VOLUME /data/build/matter # proxy -ENV GOPROXY=https://goproxy.io +ENV GOPROXY=https://goproxy.cn # prepare the config file RUN go build -mod=readonly \ diff --git a/build/pack/build.bat b/build/pack/build.bat index 42a6d31..d598c5c 100644 --- a/build/pack/build.bat +++ b/build/pack/build.bat @@ -14,7 +14,7 @@ SET VERSION_NAME=tank-3.1.4 ECHO VERSION_NAME: %VERSION_NAME% @REM golang proxy -SET GOPROXY=https://athens.azurefd.net +SET GOPROXY=https://goproxy.cn ECHO GOPROXY: %GOPROXY% @REM assign variable like Linux GOARCH=$(go env GOARCH) eg. amd64 FOR /f %%i IN ('go env GOARCH') DO SET GOARCH=%%i diff --git a/build/pack/build.sh b/build/pack/build.sh index 444c8a5..a8886bb 100755 --- a/build/pack/build.sh +++ b/build/pack/build.sh @@ -12,7 +12,7 @@ VERSION_NAME=tank-3.1.4 echo "VERSION_NAME: ${VERSION_NAME}" # golang proxy -GOPROXY=https://athens.azurefd.net +GOPROXY=https://goproxy.cn echo "GOPROXY: ${GOPROXY}" # eg. amd64 GOARCH=$(go env GOARCH)