aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/install_shadow_gopath.txt
blob: 2039d9e7f2ece442866c9936e01ccfcda59c7a58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Tests Issue #3562
# go get foo.io (not foo.io/subdir) was not working consistently.

[!net] skip

env GO111MODULE=off
env GOPATH=$WORK/gopath1${:}$WORK/gopath2

mkdir $WORK/gopath1/src/test
mkdir $WORK/gopath2/src/test
cp main.go $WORK/gopath2/src/test/main.go
cd $WORK/gopath2/src/test

! go install
stderr 'no install location for.*gopath2.src.test: hidden by .*gopath1.src.test'

-- main.go --
package main

func main() {}