github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/mod_list_replace_dir.txt (about) 1 # Test that "go list" succeeds when given a directory in a replacement 2 # module within the module cache. 3 # Verifies golang.org/issue/29548 4 5 env GO111MODULE=on 6 go mod download 7 8 ! go list $GOPATH/pkg/mod/rsc.io/quote@v1.5.2 9 stderr 'can only use path@version syntax with .go get.' 10 11 go list $GOPATH/pkg/mod/rsc.io/quote@v1.5.1 12 stdout 'rsc.io/quote' 13 14 -- go.mod -- 15 module example.com/quoter 16 17 require rsc.io/quote v1.5.2 18 19 replace rsc.io/quote => rsc.io/quote v1.5.1