]> Cypherpunks repositories - gostls13.git/commit
cmd/go: refactor usage of `initialized`
authorIan Alexander <jitsu@google.com>
Wed, 20 Aug 2025 23:16:36 +0000 (19:16 -0400)
committerIan Alexander <jitsu@google.com>
Mon, 6 Oct 2025 22:05:13 +0000 (15:05 -0700)
commit7bfeb43509acbe75ce8e1a14c60bffe597e46813
treee69b7e1822b09c22f2da22bef2da09e3292ded63
parent1d62e92567a858b18f4e7e0c24e071c039dd3edf
cmd/go: refactor usage of `initialized`

This commit refactors usage of the global variable `initialized` to
the global LoaderState field of the same name.

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

[git-generate]
cd src/cmd/go/internal/modload
rf 'ex { initialized -> LoaderState.initialized }'
rf 'rm initialized'

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