Text file src/cmd/go/testdata/script/mod_cache_dir.txt
Documentation: cmd/go/testdata/script
1 env GO111MODULE=on 2 3 # Go should reject relative paths in GOMODCACHE environment. 4 5 env GOMODCACHE="~/test" 6 ! go get example.com/tools/cmd/hello 7 stderr 'must be absolute path' 8 9 env GOMODCACHE="./test" 10 ! go get example.com/tools/cmd/hello 11 stderr 'must be absolute path' 12