mirror of
https://github.com/golang/go
synced 2024-11-11 18:51:37 -07:00
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 <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Bryan Mills <bcmills@google.com> Auto-Submit: Bryan Mills <bcmills@google.com>
This commit is contained in:
parent
0183c1aa02
commit
dbf9bf2c39
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user