]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modload: embed PackageOpts in loaderParams
authorBryan C. Mills <bcmills@google.com>
Tue, 13 Oct 2020 14:58:13 +0000 (10:58 -0400)
committerBryan C. Mills <bcmills@google.com>
Tue, 27 Oct 2020 06:32:35 +0000 (06:32 +0000)
commit1095dd6339dbaf8d7c92214396c0a4dbcfa38521
treececadbe9d8833473549518ced99758f49af7ee9b
parent7eba75ab60d5d76b605d6095c64ddd38218c963b
cmd/go/internal/modload: embed PackageOpts in loaderParams

Instead of duplicating PackageOpts fields in the loaderParams struct,
embed the PackageOpts directly. Many of the fields are duplicated, and
further fields that would also be duplicated will be added in
subsequent changes.

For #36460

Change-Id: I3b0770d162e901d23ec1643183eb07c413d51e0a
Reviewed-on: https://go-review.googlesource.com/c/go/+/263138
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/modload/buildlist.go
src/cmd/go/internal/modload/load.go