This commit removes references to the global modfetch.Fetcher_
variable from the modget package.
Change-Id: I62dfcc0e9cf9722a6706bbdf7b6e561130ed82d1
Reviewed-on: https://go-review.googlesource.com/c/go/+/724247
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>
if oldRepl := modload.Replacement(loaderstate, old); oldRepl.Path != "" {
oldActual = oldRepl
}
- if mActual == oldActual || mActual.Version == "" || !modfetch.HaveSum(modfetch.Fetcher_, oldActual) {
+ if mActual == oldActual || mActual.Version == "" || !modfetch.HaveSum(loaderstate.Fetcher(), oldActual) {
continue
}
r.work.Add(func() {
- if _, err := modfetch.Fetcher_.DownloadZip(ctx, mActual); err != nil {
+ if _, err := loaderstate.Fetcher().DownloadZip(ctx, mActual); err != nil {
verb := "upgraded"
if gover.ModCompare(m.Path, m.Version, old.Version) < 0 {
verb = "downgraded"