]> Cypherpunks repositories - gostls13.git/commit
cmd/go: compute BuildInfo and EmbedFiles when listing export data
authorBryan C. Mills <bcmills@google.com>
Fri, 17 Mar 2023 17:12:13 +0000 (13:12 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 29 Mar 2023 22:01:35 +0000 (22:01 +0000)
commit6615324f79bf16e1c81951c9a18e51d1908f2698
treed1578b70ea3a50cc09c7a0b07d8068a453f9b575
parentf521077b018c833453fcef947da72fe70a877300
cmd/go: compute BuildInfo and EmbedFiles when listing export data

'go list -export' lists the locations of compiled artifacts,
so it needs to load all of the metadata needed to compile each package.

Fixes #58885.

Change-Id: Ie78527e0fb423698fb4195fe50e0b6925b05aa8c
Reviewed-on: https://go-review.googlesource.com/c/go/+/477197
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
src/cmd/go/internal/list/list.go
src/cmd/go/testdata/script/list_export_embed.txt [new file with mode: 0644]