]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add loaderstate as field on `mvsReqs`
authorIan Alexander <jitsu@google.com>
Thu, 2 Oct 2025 19:31:10 +0000 (15:31 -0400)
committerIan Alexander <jitsu@google.com>
Sat, 25 Oct 2025 01:07:56 +0000 (18:07 -0700)
commitade9f33e1f65cb51cbf15289edef4b60f201a01e
tree9ff0ffacf338018913b0d89fec8376369756830d
parentccf4192a313ec46380c70369537085eacaa17fa8
cmd/go: add loaderstate as field on `mvsReqs`

This change modifies the type `mvsReqs` to have an additional field to
store the current module loader state.  The field is used to break the
dependency on the global `modload.LoaderState` variable.

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

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