Text file src/cmd/go/testdata/script/install_shadow_gopath.txt
1 # Tests Issue #3562 2 # go get foo.io (not foo.io/subdir) was not working consistently. 3 4 env GO111MODULE=off 5 env GOPATH=$WORK/gopath1${:}$WORK/gopath2 6 7 mkdir $WORK/gopath1/src/test 8 mkdir $WORK/gopath2/src/test 9 cp main.go $WORK/gopath2/src/test/main.go 10 cd $WORK/gopath2/src/test 11 12 ! go install 13 stderr 'no install location for.*gopath2.src.test: hidden by .*gopath1.src.test' 14 15 -- main.go -- 16 package main 17 18 func main() {} 19