We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c017f1 commit cd75735Copy full SHA for cd75735
go/analysis/analysis.go
@@ -252,5 +252,6 @@ type Fact interface {
252
type Module struct {
253
Path string // module path
254
Version string // module version ("" if unknown, such as for workspace modules)
255
+ GoMod string // path to go.mod file used when loading this module, if any
256
GoVersion string // go version used in module (e.g. "go1.22.0")
257
}
go/analysis/checker/checker.go
@@ -321,6 +321,7 @@ func (act *Action) execOnce() {
321
if mod := act.Package.Module; mod != nil {
322
module.Path = mod.Path
323
module.Version = mod.Version
324
+ module.GoMod = mod.GoMod
325
module.GoVersion = mod.GoVersion
326
327
0 commit comments