github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/mod_file_proxy.txt (about) 1 [short] skip 2 3 # Allow (cached) downloads for -mod=readonly. 4 env GO111MODULE=on 5 env GOPATH=$WORK/gopath1 6 cd $WORK/x 7 go mod edit -fmt 8 go list -mod=readonly 9 env GOPROXY=file:///nonexist 10 go list 11 grep v1.5.1 $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/list 12 13 # Use download cache as file:/// proxy. 14 env GOPATH=$WORK/gopath2 15 [windows] env GOPROXY=file:///C:/nonexist 16 [!windows] env GOPROXY=file:///nonexist 17 ! go list 18 [windows] env GOPROXY=file:///$WORK/gopath1/pkg/mod/cache/download 19 [!windows] env GOPROXY=file://$WORK/gopath1/pkg/mod/cache/download 20 go list 21 grep v1.5.1 $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/list 22 23 -- $WORK/x/go.mod -- 24 module x 25 go 1.13 26 require rsc.io/quote v1.5.1 27 -- $WORK/x/x.go -- 28 package x 29 import _ "rsc.io/quote" 30 -- $WORK/x/go.sum -- 31 golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c h1:pvCbr/wm8HzDD3fVywevekufpn6tCGPY3spdHeZJEsw= 32 golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 33 rsc.io/quote v1.5.1 h1:ZE3OgnVGrhXtFkGw90HwW992ZRqcdli/33DLqEYsoxA= 34 rsc.io/quote v1.5.1/go.mod h1:LzX7hefJvL54yjefDEDHNONDjII0t9xZLPXsUe+TKr0= 35 rsc.io/sampler v1.3.0 h1:HLGR/BgEtI3r0uymSP/nl2uPLsUnNJX8toRyhfpBTII= 36 rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=