github.com/rogpeppe/go-internal@v1.12.1-0.20240509064211-c8567cf8e95f/cmd/testscript/testdata/simple.txt (about) 1 # With .gomodproxy supporting files, any GOPROXY from the 2 # environment should be overridden by the test proxy. 3 env GOPROXY=0.1.2.3 4 5 unquote file.txt 6 testscript -v file.txt 7 stdout 'example.com/mod' 8 ! stderr .+ 9 10 -- file.txt -- 11 >go get -d fruit.com 12 >go list -m 13 >stdout 'example.com/mod' 14 >go list fruit.com/... 15 >stdout 'fruit.com/fruit' 16 >stdout 'fruit.com/coretest' 17 18 >-- go.mod -- 19 >module example.com/mod 20 > 21 >require fruit.com v1.0.0 22 23 >-- .gomodproxy/fruit.com_v1.0.0/.mod -- 24 >module fruit.com 25 > 26 >-- .gomodproxy/fruit.com_v1.0.0/.info -- 27 >{"Version":"v1.0.0","Time":"2018-10-22T18:45:39Z"} 28 > 29 >-- .gomodproxy/fruit.com_v1.0.0/go.mod -- 30 >module fruit.com 31 > 32 >-- .gomodproxy/fruit.com_v1.0.0/fruit/fruit.go -- 33 >package fruit 34 > 35 >const Apple = "apple" 36 >-- .gomodproxy/fruit.com_v1.0.0/coretest/coretest.go -- 37 >// package coretest becomes a candidate for the missing 38 >// core import in main above 39 >package coretest 40 > 41 >const Mandarin = "mandarin"