]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: set Incomplete field on go list output if no files match embed
authorMichael Matloob <matloob@golang.org>
Sat, 16 Jan 2021 00:18:34 +0000 (19:18 -0500)
committerMichael Matloob <matloob@golang.org>
Wed, 20 Jan 2021 17:38:12 +0000 (17:38 +0000)
commit803d18fc6c656c5410a62157de0328a669e1b56b
tree521beae816e2f6d5be02fdd55ba8d8ae99556b6a
parent6e243ce71d910876839d1bad4adf9b259c3a8e21
cmd/go: set Incomplete field on go list output if no files match embed

If no files match the embed pattern, the Error field will be set on
the package output by go list. Also set the Incomplete field for
consistency.

Fixes #43727

Change-Id: I5b4bb2a03a751269641a9bc4ef1d0fa0e37d46aa
Reviewed-on: https://go-review.googlesource.com/c/go/+/284257
Trust: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/load/pkg.go
src/cmd/go/testdata/script/embed.txt