]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: report the imports of CompiledGoFiles in ImportMap
authorBryan C. Mills <bcmills@google.com>
Tue, 8 Jun 2021 19:53:08 +0000 (15:53 -0400)
committerBryan C. Mills <bcmills@google.com>
Thu, 10 Jun 2021 19:59:02 +0000 (19:59 +0000)
commit8d11b1d1172817359d08231deaf29f72d315b762
tree2160a903ff721d086a71f5910574ddf4bb895a30
parentdc00dc6c6bf3b5554e37f60799aec092276ff807
cmd/go: report the imports of CompiledGoFiles in ImportMap

Ideally we should encode the load.PackageInternal data in a way that
doesn't rely on 1:1 correlations of slices, but this is a minimal fix
to unblock Go 1.17.

Fixes #46462

Change-Id: I6e029c69f757aadc54d4be02c01d6b294c217542
Reviewed-on: https://go-review.googlesource.com/c/go/+/326610
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/go/internal/list/list.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/testdata/script/list_cgo_compiled_importmap.txt [new file with mode: 0644]