From dbf9bf2c39116f1330002ebba8f8870b96645d87 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Fri, 16 Jun 2023 15:58:03 -0400 Subject: [PATCH] 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 --- src/cmd/internal/moddeps/moddeps_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.50.0