From: Bryan C. Mills Date: Fri, 16 Jun 2023 19:58:03 +0000 (-0400) Subject: cmd/internal/moddeps: allow the "misc" module to be missing from GOROOT X-Git-Tag: go1.21rc2~1^2~8 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=dbf9bf2c39;p=gostls13.git cmd/internal/moddeps: allow the "misc" module to be missing from GOROOT 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 TryBot-Result: Gopher Robot Run-TryBot: Bryan Mills Auto-Submit: Bryan Mills --- diff --git a/src/cmd/internal/moddeps/moddeps_test.go b/src/cmd/internal/moddeps/moddeps_test.go index af3f99b801..ae890b66cb 100644 --- a/src/cmd/internal/moddeps/moddeps_test.go +++ b/src/cmd/internal/moddeps/moddeps_test.go @@ -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 {