]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
cmd/go/internal/modfetch: inject Fetcher_ into TidyGoSum
authorIan Alexander <jitsu@google.com>
Mon, 24 Nov 2025 15:53:31 +0000 (10:53 -0500)
committerIan Alexander <jitsu@google.com>
Wed, 26 Nov 2025 03:15:16 +0000 (19:15 -0800)
commit47baf48890397b6b6a11c9baeceaa36212a21108
treefd0ef994955298b9d7d097ae61b2509ca905ad60
parent272df5f6ba94018dac2b7d384e92115b795fe241
cmd/go/internal/modfetch: inject Fetcher_ into TidyGoSum

This commit begins the injection of the global Fetcher_ variable into
the various function calls that make use of it.  The purpose is to
prepare for the eventual removal of the global Fetcher_ variable and
eliminate global state.

[git-generate]
cd src/cmd/go/internal/modfetch
rf '
  inject Fetcher_ TidyGoSum
  mv haveModSumLocked.fetcher_ haveModSumLocked.f
  mv addModSumLocked.fetcher_ addModSumLocked.f
  mv tidyGoSum.fetcher_ tidyGoSum.f
  mv sumInWorkspaceModulesLocked.fetcher_ sumInWorkspaceModulesLocked.f
'

Change-Id: Iecf736f17d6e63c856355284d09b7982dc9e16b6
Reviewed-on: https://go-review.googlesource.com/c/go/+/724240
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/modfetch/fetch.go