Skip to content

Commit

Permalink
更新golang 代理
Browse files Browse the repository at this point in the history
  • Loading branch information
xl1605368195 committed Oct 23, 2023
1 parent de1c6a7 commit 7d7af46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ cd ${SERVER_PROJECT_HOME} || exit 1
projectpath=`pwd`
echo "current dir:${projectpath}"

# 设置阿里云代理
export GOPROXY="https://mirrors.aliyun.com/goproxy/"
#export GOPROXY="goproxy.cn"
# 设置代理
#export GOPROXY="https://mirrors.aliyun.com/goproxy/"
export GOPROXY="goproxy.cn"
echo "GOPROXY:"${GOPROXY}

moduleName=$(go list -m)
Expand Down Expand Up @@ -92,4 +92,4 @@ tar -zcvf ${zip_name} server/

echo "$zip_name finish."

exit 0
exit 0

0 comments on commit 7d7af46

Please sign in to comment.