Commit 20bcd6e0 authored by Boxiang Sun's avatar Boxiang Sun

Enable goproxy.cn again

parent e5f8bda6
...@@ -191,7 +191,7 @@ command = bash -c ". ${gowork:env.sh} ...@@ -191,7 +191,7 @@ command = bash -c ". ${gowork:env.sh}
# external module, e.g. golang.org/x/tools/gopls@v0.4.3 # external module, e.g. golang.org/x/tools/gopls@v0.4.3
*@*) *@*)
echo GOMOD \$x echo GOMOD \$x
GO111MODULE=off go install ${gowork:buildflags} -v \$x GO111MODULE=on GOPROXY=https://goproxy.cn,direct go install ${gowork:buildflags} -v \$x
;; ;;
# locally-cloned module source, e.g. <module-src-location>:./... # locally-cloned module source, e.g. <module-src-location>:./...
...@@ -199,13 +199,13 @@ command = bash -c ". ${gowork:env.sh} ...@@ -199,13 +199,13 @@ command = bash -c ". ${gowork:env.sh}
echo GOMODSRC \$x echo GOMODSRC \$x
dir=\"\$${x%%:*}\" dir=\"\$${x%%:*}\"
arg=\"\$${x#*:}\" arg=\"\$${x#*:}\"
(cd \$dir && GO111MODULE=off go install ${gowork:buildflags} -v \$arg) (cd \$dir && GO111MODULE=on GOPROXY=https://goproxy.cn,direct go install ${gowork:buildflags} -v \$arg)
;; ;;
# non-module # non-module
*) *)
echo GOPKG \$x echo GOPKG \$x
GO111MODULE=off go install ${gowork:buildflags} -v \$x GO111MODULE=on GOPROXY=https://goproxy.cn,direct go install ${gowork:buildflags} -v \$x
;; ;;
esac esac
done 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