env GO111MODULE=on

! go mod init .
stderr 'malformed 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() {}
