// goModSummary returns a summary of the go.mod file for module m,
// taking into account any replacements for m, exclusions of its dependencies,
-// and or vendoring.
+// and/or vendoring.
//
// goModSummary cannot be used on the Target module, as its requirements
// may change.
return cached{nil, module.VersionError(actual, errors.New("parsing go.mod: missing module line"))}
}
- // In theory we should only allow mpath to be unequal to mod.Path here if the
+ // In theory we should only allow mpath to be unequal to m.Path here if the
// version that we fetched lacks an explicit go.mod file: if the go.mod file
// is explicit, then it should match exactly (to ensure that imports of other
// packages within the module are interpreted correctly). Unfortunately, we
"cmd/go/internal/modfetch"
"cmd/go/internal/mvs"
- "cmd/go/internal/par"
"golang.org/x/mod/module"
"golang.org/x/mod/semver"
// with any exclusions or replacements applied internally.
type mvsReqs struct {
buildList []module.Version
- cache par.Cache // module.Version → Required method results
}
// Reqs returns the current module requirement graph.