1 # Allow (cached) downloads for -mod=readonly.
3 env GOPATH=$WORK/gopath1
7 env GOPROXY=file:///nonexist
9 grep v1.5.1 $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/list
11 # Use download cache as file:/// proxy.
12 [windows] stop # TODO: file://$WORK puts backslashes in the URL
13 env GOPATH=$WORK/gopath2
14 env GOPROXY=file:///nonexist
16 env GOPROXY=file://$WORK/gopath1/pkg/mod/cache/download
18 grep v1.5.1 $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/list
22 require rsc.io/quote v1.5.1
25 import _ "rsc.io/quote"