]> Cypherpunks repositories - gostls13.git/commit
cmd/go: remove loaderstate dependency
authorIan Alexander <jitsu@google.com>
Fri, 24 Oct 2025 16:52:37 +0000 (12:52 -0400)
committerIan Alexander <jitsu@google.com>
Sun, 26 Oct 2025 21:11:07 +0000 (14:11 -0700)
commitca379b1c562c22889b73a17915688e35cbb5ceb9
treefbaf60cc2601eafbf6ff981d075b0294d930b79e
parent83a44bde645eb56495504a2d3845fa1c1ccf7aa5
cmd/go: remove loaderstate dependency

This change removes the dependency on the module loader state from the
`QueryMatchesMainModulesError.Error()` method.

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

Change-Id: I47241587a0bf9b578931628f35ed3b936a0cb04a
Reviewed-on: https://go-review.googlesource.com/c/go/+/714700
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/modget/get.go
src/cmd/go/internal/modload/query.go