Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions go/analysis/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,5 +252,6 @@ type Fact interface {
type Module struct {
Path string // module path
Version string // module version ("" if unknown, such as for workspace modules)
GoMod string // path to go.mod file used when loading this module, if any
GoVersion string // go version used in module (e.g. "go1.22.0")
}
1 change: 1 addition & 0 deletions go/analysis/checker/checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ func (act *Action) execOnce() {
if mod := act.Package.Module; mod != nil {
module.Path = mod.Path
module.Version = mod.Version
module.GoMod = mod.GoMod
module.GoVersion = mod.GoVersion
}

Expand Down