# Verify that goproxytest.Setup sets GOPROXY when .gomodproxy is present # and that the proxy actually serves modules. go env GOPROXY stdout ^http://.*/mod,file://.*$ go list -m -versions fruit.com stdout 'v1.0.0' go get -d fruit.com@v1.0.0 # The goproxytest package information should definitely be available # and cached. go get -d github.com/rogpeppe/go-internal/goproxytest -- go.mod -- module mod -- .gomodproxy/_enable_overlay -- We want to be able to use regular Go modules as well as test-related ones. The contents of this file are ignored; only its presence is necessary. -- .gomodproxy/fruit.com_v1.0.0/go.mod -- module fruit.com -- .gomodproxy/fruit.com_v1.0.0/fruit/fruit.go -- package fruit const Name = "Apple"