Black Lives Matter. Support the Equal Justice Initiative.

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  
     4  [!net] skip
     5  
     6  env GO111MODULE=off
     7  env GOPATH=$WORK/gopath1${:}$WORK/gopath2
     8  
     9  mkdir $WORK/gopath1/src/test
    10  mkdir $WORK/gopath2/src/test
    11  cp main.go $WORK/gopath2/src/test/main.go
    12  cd $WORK/gopath2/src/test
    13  
    14  ! go install
    15  stderr 'no install location for.*gopath2.src.test: hidden by .*gopath1.src.test'
    16  
    17  -- main.go --
    18  package main
    19  
    20  func main() {}
    21  

View as plain text