1 env GO111MODULE=on
2
3 # GOPROXY file paths must provide the "file://" prefix explicitly.
4 env GOPROXY=$WORK/proxydir
5 ! go list -versions -m golang.org/x/text
6 stderr 'invalid proxy URL.*proxydir'
7
8 [!net:proxy.golang.org] stop
9
10 # GOPROXY HTTPS paths may elide the "https://" prefix.
11 # (See golang.org/issue/32191.)
12 env GOPROXY=proxy.golang.org
13 env GOSUMDB=
14 go list -versions -m golang.org/x/text
15
16 -- go.mod --
17 module example.com
18 go 1.13
19 -- $WORK/proxydir/README.md --
20 This proxy contains no data.
21
View as plain text