env GO111MODULE=on

! go mod init .
stderr '^go: invalid module path "\.": is a local import path$'

cd x
go mod init example.com/x

cd ../y
go mod init m

-- x/main.go --
package main

func main() {}

-- y/main.go --
package main

func main() {}
