From 2835b994fb8c7125180d912a457308d64a30542f Mon Sep 17 00:00:00 2001 From: Ian Alexander Date: Fri, 10 Oct 2025 08:59:21 -0400 Subject: [PATCH] cmd/go: remove global loader state variable 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 Reviewed-by: Michael Matloob Reviewed-by: Michael Matloob --- src/cmd/go/internal/modload/init.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cmd/go/internal/modload/init.go b/src/cmd/go/internal/modload/init.go index e2116b7289..9abfac9715 100644 --- a/src/cmd/go/internal/modload/init.go +++ b/src/cmd/go/internal/modload/init.go @@ -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 -- 2.52.0