]> Cypherpunks repositories - gostls13.git/commit
cmd/go: inject loaderstate into matcher function
authorIan Alexander <jitsu@google.com>
Thu, 2 Oct 2025 18:45:23 +0000 (14:45 -0400)
committerIan Alexander <jitsu@google.com>
Mon, 20 Oct 2025 20:04:17 +0000 (13:04 -0700)
commit7503856d4072a748ac5618c6040f84a2f7ddac59
treefa827088cc5d0cb3f640fac9e2ac7febaed46c7d
parentd57c3fd743b723d564be5764024241cdefd5aa43
cmd/go: inject loaderstate into matcher function

This change alters the matcher function in vendorPkg in order to
retrieve the go version from the current loaderstate.

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

Change-Id: Iedb12bdfe4ab3c24dbbf161db1f3842014415c59
Reviewed-on: https://go-review.googlesource.com/c/go/+/711117
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/modcmd/vendor.go