From 83a44bde645eb56495504a2d3845fa1c1ccf7aa5 Mon Sep 17 00:00:00 2001 From: Ian Alexander Date: Fri, 10 Oct 2025 08:57:52 -0400 Subject: [PATCH] cmd/go: remove unused loader state This test file does not make any use of the module loader state. This commit is part of the overall effort to eliminate global modloader state. Change-Id: I198c76aef9d9a87ae1a2299230f8a06d7a87767a Reviewed-on: https://go-review.googlesource.com/c/go/+/711137 Reviewed-by: Michael Matloob LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Matloob --- src/cmd/go/internal/modfetch/zip_sum_test/zip_sum_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cmd/go/internal/modfetch/zip_sum_test/zip_sum_test.go b/src/cmd/go/internal/modfetch/zip_sum_test/zip_sum_test.go index 9d59d1a8ea..edae1d8f3c 100644 --- a/src/cmd/go/internal/modfetch/zip_sum_test/zip_sum_test.go +++ b/src/cmd/go/internal/modfetch/zip_sum_test/zip_sum_test.go @@ -31,7 +31,6 @@ import ( "cmd/go/internal/cfg" "cmd/go/internal/modfetch" - "cmd/go/internal/modload" "golang.org/x/mod/module" ) @@ -94,7 +93,6 @@ func TestZipSums(t *testing.T) { cfg.GOPROXY = "direct" cfg.GOSUMDB = "off" - modload.Init(modload.LoaderState) // Shard tests by downloading only every nth module when shard flags are set. // This makes it easier to test small groups of modules quickly. We avoid -- 2.52.0