aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/internal/list/list.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2020-07-08 17:13:16 -0400
committerRuss Cox <rsc@golang.org>2020-10-29 16:26:43 +0000
commit25d28ec55aded46e0be9c2298f24287d296a9e47 (patch)
treec7bb0ab1ad5a0d249fe3a18a35942a0863370238 /src/cmd/go/internal/list/list.go
parentddc7e1d16f58c73a2587bba130a4a49ffac8b0d1 (diff)
downloadgo-25d28ec55aded46e0be9c2298f24287d296a9e47.tar.gz
go-25d28ec55aded46e0be9c2298f24287d296a9e47.zip
cmd/go: add //go:embed support
The final piece of //go:embed support: have the go command stitch together parsing in go/build, low-level data initialization in cmd/compile, and the new data structures in package embed, to make the //go:embed feature actually function. And test, now that all the pieces are available to work together. For #41191. (Issue not fixed: still need to add a tool for use by Bazel.) Change-Id: Ib1d198345c3b4d557d340f292eda13b984b65d65 Reviewed-on: https://go-review.googlesource.com/c/go/+/243945 Trust: Russ Cox <rsc@golang.org> Trust: Jay Conrod <jayconrod@google.com> Trust: Johan Brandhorst <johan.brandhorst@gmail.com> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com> Reviewed-by: Johan Brandhorst <johan.brandhorst@gmail.com>
Diffstat (limited to 'src/cmd/go/internal/list/list.go')
-rw-r--r--src/cmd/go/internal/list/list.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/go/internal/list/list.go b/src/cmd/go/internal/list/list.go
index 89088f5def..9af9dbb856 100644
--- a/src/cmd/go/internal/list/list.go
+++ b/src/cmd/go/internal/list/list.go
@@ -570,6 +570,8 @@ func runList(ctx context.Context, cmd *base.Command, args []string) {
// Show vendor-expanded paths in listing
p.TestImports = p.Resolve(p.TestImports)
p.XTestImports = p.Resolve(p.XTestImports)
+ p.TestEmbedFiles = p.ResolveEmbed(p.TestEmbedPatterns)
+ p.XTestEmbedFiles = p.ResolveEmbed(p.XTestEmbedPatterns)
p.DepOnly = !cmdline[p]
if *listCompiled {