...

Text file src/cmd/go/testdata/script/mod_proxy_https.txt

Documentation: cmd/go/testdata/script

     1env GO111MODULE=on
     2
     3# GOPROXY file paths must provide the "file://" prefix explicitly.
     4env GOPROXY=$WORK/proxydir
     5! go list -versions -m golang.org/x/text
     6stderr '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.)
    12env GOPROXY=proxy.golang.org
    13env GOSUMDB=
    14go list -versions -m golang.org/x/text
    15
    16-- go.mod --
    17module example.com
    18go 1.13
    19-- $WORK/proxydir/README.md --
    20This proxy contains no data.

View as plain text