]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modload: remove ImportMap and PackageDir
authorBryan C. Mills <bcmills@google.com>
Fri, 2 Jul 2021 17:15:37 +0000 (13:15 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 23 Aug 2022 18:22:17 +0000 (18:22 +0000)
commitbe9e2440a766f4cd1069945ebd2e527cb7fd7594
treeb65bbac9aa12d5b86933b50c0880ff9caa38ae9e
parentde561dc7664c9792964d8fa74a3aa02263ee36b9
cmd/go/internal/modload: remove ImportMap and PackageDir

These two functions together duplicated much of the functionality of
modload.Lookup. Use that instead in modcmd.vendorPkg, and reduce the
modload surface area.

Updates #42504
Updates #40775
For #26904

Change-Id: Ib8aaac495d090178dd56971aef9e5aa44ffa818b
Reviewed-on: https://go-review.googlesource.com/c/go/+/332571
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
src/cmd/go/internal/modcmd/vendor.go
src/cmd/go/internal/modload/load.go