...

Text file src/cmd/go/testdata/script/mod_cache_dir.txt

Documentation: cmd/go/testdata/script

     1env GO111MODULE=on
     2
     3# Go should reject relative paths in GOMODCACHE environment.
     4
     5env GOMODCACHE="~/test"
     6! go install example.com/tools/cmd/hello@latest
     7stderr 'must be absolute path'
     8
     9env GOMODCACHE="./test"
    10! go install example.com/tools/cmd/hello@latest
    11stderr 'must be absolute path'

View as plain text