Debian Codegraph @

src/cmd/go/testdata/script/mod_run_path.txt

raw
1 # Test that go run does not get confused by conflict
2 # between go.mod's module path and what you'd
3 # expect from GOPATH. golang.org/issue/26046.
4
5 env GO111MODULE=on
6
7 cd $GOPATH/src/example.com/hello
8 go run main.go
9
10 -- $GOPATH/src/example.com/hello/go.mod --
11 module example.com/hello/v2
12
13 -- $GOPATH/src/example.com/hello/main.go --
14 package main
15 func main() {}