]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/modload: address issues missed in CL 244774
authorBryan C. Mills <bcmills@google.com>
Tue, 25 Aug 2020 01:34:33 +0000 (21:34 -0400)
committerBryan C. Mills <bcmills@google.com>
Thu, 27 Aug 2020 19:38:43 +0000 (19:38 +0000)
For #36460

Change-Id: I5e9a42d64e36679b881e96145833e66cf77b98a5
Reviewed-on: https://go-review.googlesource.com/c/go/+/250338
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/modload/modfile.go
src/cmd/go/internal/modload/mvs.go

index 0b135c5fb515a5fe90b8611ef4b8e0252a88b2d1..a45c4a63be28b79d029ac4fa028a6062d1c2a337 100644 (file)
@@ -345,7 +345,7 @@ type retraction struct {
 
 // 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.
@@ -405,7 +405,7 @@ func goModSummary(m module.Version) (*modFileSummary, error) {
                                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
index d023ab50946c9a77158b8addf045ddeb971e6abb..24856260d46ca00371c99fd59f6b052842e703e5 100644 (file)
@@ -14,7 +14,6 @@ import (
 
        "cmd/go/internal/modfetch"
        "cmd/go/internal/mvs"
-       "cmd/go/internal/par"
 
        "golang.org/x/mod/module"
        "golang.org/x/mod/semver"
@@ -24,7 +23,6 @@ import (
 // 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.