Commit e7a7f60b authored by Boxiang Sun's avatar Boxiang Sun

Use goproxy.io to replace the default proxy.golang.org

parent f47e6358
......@@ -80,7 +80,7 @@ md5sum = 4476707f05cf6915ec1173038dc357a9
# go1.17 needs go1.4 to bootstrap
environment-extra =
GOROOT_BOOTSTRAP=${golang14:location}
GOPROXY=off
GOPROXY=https://goproxy.io
# ---- infrastructure to build Go workspaces / projects ----
......@@ -192,7 +192,7 @@ command = bash -c ". ${gowork:env.sh}
# external module, e.g. golang.org/x/tools/gopls@v0.4.3
*@*)
echo GOMOD \$x
GO111MODULE=on GOPROXY=off go install ${gowork:buildflags} -v \$x
GO111MODULE=on GOPROXY=https://goproxy.io go install ${gowork:buildflags} -v \$x
;;
# locally-cloned module source, e.g. <module-src-location>:./...
......@@ -200,13 +200,13 @@ command = bash -c ". ${gowork:env.sh}
echo GOMODSRC \$x
dir=\"\$${x%%:*}\"
arg=\"\$${x#*:}\"
(cd \$dir && GO111MODULE=on GOPROXY=off go install ${gowork:buildflags} -v \$arg)
(cd \$dir && GO111MODULE=on GOPROXY=https://goproxy.io go install ${gowork:buildflags} -v \$arg)
;;
# non-module
*)
echo GOPKG \$x
GO111MODULE=off GOPROXY=off go install ${gowork:buildflags} -v \$x
GO111MODULE=off GOPROXY=https://goproxy.io go install ${gowork:buildflags} -v \$x
;;
esac
done
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment