Solved thanks to Daniel MartÃ; use `go list -json` and grab the Module
struct out of that.
On Tue, 2019-12-24 at 09:50 +1030, Dan Kortschak wrote:
> Say I have a package path, "host.org/user/depmodule/pkgdep", which is
> the path to a dependency of "host.org/user/repomain/pkgmain". The
> go.mod fi
Say I have a package path, "host.org/user/depmodule/pkgdep", which is
the path to a dependency of "host.org/user/repomain/pkgmain". The
go.mod file in host.org/user/repomain will have a line
"host.org/user/depmodule" in the require block. If I want to
programmatically find what the module path is f