]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/moddeps: allow the "misc" module to be missing from GOROOT
authorBryan C. Mills <bcmills@google.com>
Fri, 16 Jun 2023 19:58:03 +0000 (15:58 -0400)
committerGopher Robot <gobot@golang.org>
Fri, 16 Jun 2023 20:47:33 +0000 (20:47 +0000)
cmd/distpack deletes that module from its distribution.

For #24904.

Change-Id: I69dd328d0f790a49db7a053d703ae985d9ebe9e4
Reviewed-on: https://go-review.googlesource.com/c/go/+/504060
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>

src/cmd/internal/moddeps/moddeps_test.go

index af3f99b801c8d2cb7b205c6ea592b9363e8fbbb0..ae890b66cb479cb848f0a12149df8c954f3caca5 100644 (file)
@@ -504,7 +504,7 @@ func findGorootModules(t *testing.T) []gorootModule {
                knownGOROOTModules := [...]string{
                        "std",
                        "cmd",
-                       "misc",
+                       // The "misc" module sometimes exists, but cmd/distpack intentionally removes it.
                }
                var seen = make(map[string]bool) // Key is module path.
                for _, m := range goroot.modules {