Skip to content

Commit 83a44bd

Browse files
committed
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 <matloob@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Matloob <matloob@google.com>
1 parent 7e7cd9d commit 83a44bd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/cmd/go/internal/modfetch/zip_sum_test/zip_sum_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131

3232
"cmd/go/internal/cfg"
3333
"cmd/go/internal/modfetch"
34-
"cmd/go/internal/modload"
3534

3635
"golang.org/x/mod/module"
3736
)
@@ -94,7 +93,6 @@ func TestZipSums(t *testing.T) {
9493

9594
cfg.GOPROXY = "direct"
9695
cfg.GOSUMDB = "off"
97-
modload.Init(modload.LoaderState)
9896

9997
// Shard tests by downloading only every nth module when shard flags are set.
10098
// This makes it easier to test small groups of modules quickly. We avoid

0 commit comments

Comments
 (0)