Hi, I have a Go module which looks as follows: go.mod go.sum | ----- pkg1 | -----pkg2
The module is called mydomain.com/mypkg I'm trying to run the tests for pkg1 by calling go test ./pkg1/... My problem is that pkg1 imports mydomain.com/mypkg/pkg2 and that running the tests this way seems to mean that the go.mod is ignored and mydomain.com/mypkg/pkg2 is expected to be found in the GOPATH instead. I suspect I could run go test ... but I would prefer running them one package at a time which was easy enough when using the GOPATH. Can I still do that with modules without having to install the package into $GOPATH/src/mydomain.com/mypkg ? Cheers, Chris -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/009382ff-10ea-4f2a-a66e-cd314c0711c5%40googlegroups.com.