Change the default goproxy.

This commit is contained in:
lishuang 2022-03-20 16:18:43 +08:00
parent c6836f3654
commit 0c825c65d4
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ COPY . /data
VOLUME /data/build/matter VOLUME /data/build/matter
# proxy # proxy
ENV GOPROXY=https://goproxy.io ENV GOPROXY=https://goproxy.cn
# prepare the config file # prepare the config file
RUN go build -mod=readonly \ RUN go build -mod=readonly \

View File

@ -14,7 +14,7 @@
SET VERSION_NAME=tank-3.1.4 SET VERSION_NAME=tank-3.1.4
ECHO VERSION_NAME: %VERSION_NAME% ECHO VERSION_NAME: %VERSION_NAME%
@REM golang proxy @REM golang proxy
SET GOPROXY=https://athens.azurefd.net SET GOPROXY=https://goproxy.cn
ECHO GOPROXY: %GOPROXY% ECHO GOPROXY: %GOPROXY%
@REM assign variable like Linux GOARCH=$(go env GOARCH) eg. amd64 @REM assign variable like Linux GOARCH=$(go env GOARCH) eg. amd64
FOR /f %%i IN ('go env GOARCH') DO SET GOARCH=%%i FOR /f %%i IN ('go env GOARCH') DO SET GOARCH=%%i

View File

@ -12,7 +12,7 @@
VERSION_NAME=tank-3.1.4 VERSION_NAME=tank-3.1.4
echo "VERSION_NAME: ${VERSION_NAME}" echo "VERSION_NAME: ${VERSION_NAME}"
# golang proxy # golang proxy
GOPROXY=https://athens.azurefd.net GOPROXY=https://goproxy.cn
echo "GOPROXY: ${GOPROXY}" echo "GOPROXY: ${GOPROXY}"
# eg. amd64 # eg. amd64
GOARCH=$(go env GOARCH) GOARCH=$(go env GOARCH)