Proposal Details
Currently, https://pkg.go.dev/golang.org/x/tools/go/analysis#Module lacks GoMod string (path to go.mod) that is present in https://pkg.go.dev/golang.org/x/tools/go/packages#Module .
My proposal is to expose GoMod in https://pkg.go.dev/golang.org/x/tools/go/analysis#Module so that linter implementations can determine the path of go.mod.
go.mod (w/ go.sum in the same dir) is needed by my linter https://github.com/AkihiroSuda/gosocialcheck to check the reputation of dependencies.