github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/mod_proxy_list.txt (about) 1 env GO111MODULE=on 2 env proxy=$GOPROXY 3 4 # Proxy that can't serve should fail. 5 env GOPROXY=$proxy/404 6 ! go get rsc.io/quote@v1.0.0 7 stderr '404 Not Found' 8 9 # get should walk down the proxy list past 404 and 410 responses. 10 env GOPROXY=$proxy/404,$proxy/410,$proxy 11 go get rsc.io/quote@v1.1.0 12 13 # get should not walk past other 4xx errors. 14 env GOPROXY=$proxy/403,$proxy 15 ! go get rsc.io/quote@v1.2.0 16 stderr 'reading.*/403/rsc.io/.*: 403 Forbidden' 17 18 # get should not walk past non-4xx errors. 19 env GOPROXY=$proxy/500,$proxy 20 ! go get rsc.io/quote@v1.3.0 21 stderr 'reading.*/500/rsc.io/.*: 500 Internal Server Error' 22 23 # get should return the final 404/410 if that's all we have. 24 env GOPROXY=$proxy/404,$proxy/410 25 ! go get rsc.io/quote@v1.4.0 26 stderr 'reading.*/410/rsc.io/.*: 410 Gone' 27 28 -- go.mod -- 29 module x