$ mkdir tmp && cd tmp$ go mod -init -module foo.to/tmpgo: creating new go.mod: module foo.to/tmp$ echo $'package tmp\nimport "gonum.org/v1/gonum/stat/distmv"' > tmp.go$ go mod -syncgo: finding gonum.org/v1/gonum/stat/distmv latestgo: finding gonum.org/v1/gonum/stat latestgo: finding gonum.org/v1/gonum latestgo: import "foo.to/tmp" ->import "gonum.org/v1/gonum/stat/distmv": cannot find module providing package gonum.org/v1/gonum/stat/distmv
Hi,(I'm running master as of a few hours ago, devel +e5b1340 Wed Jul 25 23:53:54 2018 +0000 linux/amd64)The following ("importing gonum.org/v1/gonum/stat/distmv and syncing") does not work, and I might expect it to:$ mkdir tmp && cd tmp$ go mod -init -module foo.to/tmpgo: creating new go.mod: module foo.to/tmp$ echo $'package tmp\nimport "gonum.org/v1/gonum/stat/distmv"' > tmp.go$ go mod -syncgo: finding gonum.org/v1/gonum/stat/distmv latestgo: finding gonum.org/v1/gonum/stat latestgo: finding gonum.org/v1/gonum latestgo: import "foo.to/tmp" ->import "gonum.org/v1/gonum/stat/distmv": cannot find module providing package gonum.org/v1/gonum/stat/distmvI reported this on gonum, and there is some discussion there: https://github.com/gonum/gonum/issues/454#issuecomment-408017101I don't know how to proceed. Is the problem a module import cycle, or is it to do with build tags? Is it in Go, or gonum? I don't have time to dig in to this at the moment.
* Should I file an issue with Go, if so, what is the title?
* Is there an easy workaround to make this work right now?
* Should I file an issue with Go, if so, what is the title?Sure! “cmd/go: cannot find module for gonum.org/v1/gonum/stat/distmv” would be a good start.