Skip to content

Commit

Permalink
Change the default goproxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
zicla committed Mar 20, 2022
1 parent c6836f3 commit 0c825c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion build/pack/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build/pack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0c825c6

Please sign in to comment.