env GO111MODULE=on | |
# Go should reject relative paths in GOMODCACHE environment. | |
env GOMODCACHE="~/test" | |
! go install example.com/tools/cmd/hello@latest | |
stderr 'must be absolute path' | |
env GOMODCACHE="./test" | |
! go install example.com/tools/cmd/hello@latest | |
stderr 'must be absolute path' |