]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: remove global loader state variable
authorIan Alexander <jitsu@google.com>
Fri, 10 Oct 2025 12:59:21 +0000 (08:59 -0400)
committerIan Alexander <jitsu@google.com>
Mon, 27 Oct 2025 20:29:38 +0000 (13:29 -0700)
Prior commits have removed all dependencies on the global module
loader state variable, so it is now unnecessary and thus removed.

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

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

index e2116b728933cfbde9112817cf5cf4119c5fe77a..9abfac971573b3a221c883661bd43b33dd3b03f1 100644 (file)
@@ -453,8 +453,6 @@ type State struct {
 
 func NewState() *State { return &State{} }
 
-var LoaderState = NewState()
-
 // Init determines whether module mode is enabled, locates the root of the
 // current module (if any), sets environment variables for Git subprocesses, and
 // configures the cfg, codehost, load, modfetch, and search packages for use