go/internal/gocommand
Rebecca Stambler 2f4fa188d9 go/packages: use native overlay support for 1.16
This change modifies go/packages to use the go command's -overlay flag
if used with Go 1.16. It does so by adding a new Overlay field to the
gocommand.Invocation struct. go/packages writes out the overlay files
as expected by go list before invoking a `go list` command.

Fixes golang/go#41598

Change-Id: Iec5edf19ce2936d5a633d076905622c2cf779bcc
Reviewed-on: https://go-review.googlesource.com/c/tools/+/263984
Trust: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2020-10-23 15:00:57 +00:00
..
invoke.go go/packages: use native overlay support for 1.16 2020-10-23 15:00:57 +00:00
invoke_test.go internal/lsp/cache: add concurrency error check for go cmds 2020-04-08 03:22:09 +00:00
vendor.go cmd/godoc: support automatic vendoring 2020-06-09 06:04:08 +00:00
version.go internal/gocommand: add a GoVersion function to avoid duplicating logic 2020-10-21 20:36:10 +00:00