diff options
Diffstat (limited to 'src/cmd/go/testdata/script/mod_cache_dir.txt')
-rw-r--r-- | src/cmd/go/testdata/script/mod_cache_dir.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/mod_cache_dir.txt b/src/cmd/go/testdata/script/mod_cache_dir.txt new file mode 100644 index 0000000000..7284ccf8ba --- /dev/null +++ b/src/cmd/go/testdata/script/mod_cache_dir.txt @@ -0,0 +1,11 @@ +env GO111MODULE=on + +# Go should reject relative paths in GOMODCACHE environment. + +env GOMODCACHE="~/test" +! go get example.com/tools/cmd/hello +stderr 'must be absolute path' + +env GOMODCACHE="./test" +! go get example.com/tools/cmd/hello +stderr 'must be absolute path' |