# Verify that goproxytest.Setup sets GOPROXY when .gomodproxy is present
# and that the proxy actually serves modules.
go env GOPROXY
stdout ^http://.*/mod$

go list -m -versions fruit.com
stdout 'v1.0.0'

go get -d fruit.com@v1.0.0

-- go.mod --
module mod

-- .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"
