]> Cypherpunks repositories - gostls13.git/commit
cmd/go: use local loader state in test
authorIan Alexander <jitsu@google.com>
Fri, 10 Oct 2025 12:58:31 +0000 (08:58 -0400)
committerIan Alexander <jitsu@google.com>
Sun, 26 Oct 2025 21:11:34 +0000 (14:11 -0700)
commit54e3adc53321b9352bd0ae2aebae597d31873124
tree34be244a20ac3a1b1490c5a23e514ae02d9d71e6
parentca379b1c562c22889b73a17915688e35cbb5ceb9
cmd/go: use local loader state in test

This change converts the import test to use a local module loader
state variable, instead of the dependency on global state.

This commit is part of the overall effort to eliminate global
modloader state.

Change-Id: I5687090c160bf64ce36356768f7cf74333fab724
Reviewed-on: https://go-review.googlesource.com/c/go/+/711138
Reviewed-by: Michael Matloob <matloob@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/modload/import_test.go