]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modload: replace references to modfetch.Fetcher_
authorIan Alexander <jitsu@google.com>
Mon, 24 Nov 2025 17:19:55 +0000 (12:19 -0500)
committerIan Alexander <jitsu@google.com>
Wed, 26 Nov 2025 03:16:43 +0000 (19:16 -0800)
commitda31fd41774d99954b51722cd8fa8b54af7723fd
treebd11377c8d5dd3a839b106b5bdd1ffb5d773865c
parent07b10e97d6552e16534aae51f140771a601ef385
cmd/go/internal/modload: replace references to modfetch.Fetcher_

This commit replaces references of modfetch.Fetcher_ with
modload.State.Fetcher() in the modload package.  Note that the
constructor `NewState` still intentionally references the global
variable.  This will be refactored in a later commit.

Change-Id: Ia8cfb41a81b0e29043694bc0f0f33f5a2f4920c6
Reviewed-on: https://go-review.googlesource.com/c/go/+/724243
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/build.go
src/cmd/go/internal/modload/buildlist.go
src/cmd/go/internal/modload/edit.go
src/cmd/go/internal/modload/import.go
src/cmd/go/internal/modload/init.go
src/cmd/go/internal/modload/load.go
src/cmd/go/internal/modload/modfile.go
src/cmd/go/internal/modload/mvs.go
src/cmd/go/internal/modload/query.go
src/cmd/go/internal/modload/search.go