Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/386/go/src/cmd/go/testdata/script/mod_run_path.txt

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


# Test that go run does not get confused by conflict
# between go.mod's module path and what you'd
# expect from GOPATH. golang.org/issue/26046.

env GO111MODULE=on

cd $GOPATH/src/example.com/hello
go run main.go

-- $GOPATH/src/example.com/hello/go.mod --
module example.com/hello/v2

-- $GOPATH/src/example.com/hello/main.go --
package main
func main() {}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.