mirror of https://github.com/golang/go.git
A test variant for a package can only be reloaded by running go/packages on the non-test variants import path with the -test flag. We need to cache this import path in order to be able to reload a test package on-demand. Also, always ignore test main packages by detecting them in the metadata. Fixes golang/go#36473 Change-Id: I6e5a61c8e73689212303ae09fa3aed4a2ee8762a Reviewed-on: https://go-review.googlesource.com/c/tools/+/213660 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> |
||
|---|---|---|
| .. | ||
| check.go | ||
| cmdtest.go | ||
| definition.go | ||
| folding_range.go | ||
| format.go | ||
| highlight.go | ||
| implementation.go | ||
| imports.go | ||
| links.go | ||
| references.go | ||
| rename.go | ||
| signature.go | ||
| suggested_fix.go | ||
| symbols.go | ||