aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_alt_goroot.txt
blob: 32f94c53038084994e351fa5f157c16955ddbf65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
env GO111MODULE=on

# If the working directory is a different GOROOT, then the 'std' module should be
# treated as an ordinary module (with an ordinary module prefix).
# It should not override packages in GOROOT, but should not fail the command.
# See golang.org/issue/30756.
go list -e -deps -f '{{.ImportPath}} {{.Dir}}' ./bytes
stdout ^std/bytes.*$PWD[/\\]bytes
stdout '^bytes/modified'

-- go.mod --
module std

go 1.12
-- bytes/bytes.go --
package bytes

import _"bytes/modified"
-- bytes/modified/modified.go --
package modified