Hi, You might be seeing an issue due to using an absolute path as your module path when you did 'go mod init /Users/me/goO/mycat'.
Usually the module path should start with a hostname, including a dot (and I think that is a requirement if you with to publish the module and have it work with 'go get). I think I have seen a situation where someone hit some unexpected errors when using an absolute path for the module path, so that might explain what you are seeing, or might not, but I would advise trying to fix that to see if it helps. If it does help, I would advise filing an issue to have a clearer error message in the situation you hit. Alternatively, you could try with the latest 1.12 beta, which includes better error messages in many cases. Regards, thepudds On Sunday, January 27, 2019 at 12:55:38 AM UTC-5, advor...@emeraldcloudlab.com wrote: > > Hi, I'm playing with modules. > > Something doesn't works for me. > > > I have this code in main.go outside of GOPATH directory in > */Users/me/goO/mycat:* > > package main > > > > import ( > > "io" > > "os" > > > "github.com/sirupsen/logrus" > > ) > > > func main() { > > _, err := io.Copy(os.Stdout, os.Stdin) > > if err != nil { > > logrus.Fatal(err) > > } > > } > > > > > > I ran *go mod init /Users/me/goO/mycat* > > file* go.mod *created. > > No I'm running *go build*, which I believe should return list of > packages. But instead it returns following message: > > *build /Users/me/goO/src/mycat: cannot find module for path > github.com/sirupsen/logrus <http://github.com/sirupsen/logrus>* > > *mac os mojave* > *go v1.11.5* > > What I'm missing here? > -- 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. For more options, visit https://groups.google.com/d/optout.