goproxytest/testdata/setup/with_proxy.txt
raw| 1 | # Verify that goproxytest.Setup sets GOPROXY when .gomodproxy is present |
| 2 | # and that the proxy actually serves modules. |
| 3 | go env GOPROXY |
| 4 | stdout ^http://.*/mod$ |
| 5 | |
| 6 | go list -m -versions fruit.com |
| 7 | stdout 'v1.0.0' |
| 8 | |
| 9 | go get -d [email protected] |
| 10 | |
| 11 | -- go.mod -- |
| 12 | module mod |
| 13 | |
| 14 | -- .gomodproxy/fruit.com_v1.0.0/go.mod -- |
| 15 | module fruit.com |
| 16 | |
| 17 | -- .gomodproxy/fruit.com_v1.0.0/fruit/fruit.go -- |
| 18 | package fruit |
| 19 | |
| 20 | const Name = "Apple" |