...

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

Documentation: cmd/go/testdata/script

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

View as plain text