go/go/packages
Michael Matloob 75c71030ab go/packages: expand cases when filenames are parsed from errors
Only add files in errors if either the error's import stack is empty,
or the import stack's top package is the same as the package itself,
so we have more confidence that the error applies to the package.

This is bound to be flaky, but shouldn't be worse than the current
state. (And it unblocks a cl from going into the RC...).

Updates golang/go#40544

Change-Id: Ie21a8abec7150800d3d34b94a7ec90fd40d93fe9
Reviewed-on: https://go-review.googlesource.com/c/tools/+/246758
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-08-05 15:52:14 +00:00
..
gopackages go/package/gopackages: update gopackages to use the new tool library for its main function 2019-01-08 19:17:02 +00:00
packagestest all: replace build tags in tests with testenv helper 2020-05-27 18:32:53 +00:00
doc.go go/packages: remove obsolete comment about LoadMode in doc.go 2019-12-05 17:29:58 +00:00
example_test.go go/packages: officially deprecate LoadX values in favor of NeedX values 2019-05-29 17:04:56 +00:00
external.go go/packages: correct logging of driver stderr 2019-12-13 03:22:37 +00:00
golist.go go/packages: expand cases when filenames are parsed from errors 2020-08-05 15:52:14 +00:00
golist_overlay.go internal/lsp, go/packages: reproduce and fix golang/go#39646 2020-07-10 04:28:08 +00:00
loadmode_string.go internal/lsp, go/packages: don't log context cancellation errors 2020-04-03 19:08:13 +00:00
overlay_test.go go/packages: add x test overlay test 2020-07-15 23:54:23 +00:00
packages.go go/packages: move TypecheckCgo to packagesinternal 2020-06-10 22:20:39 +00:00
packages_test.go go/packages: add failing test for golang/go#37098 2020-07-23 16:59:20 +00:00
stdlib_test.go go/packages: fix TestCgoOption to work on Windows 2019-12-23 20:21:20 +00:00
visit.go go/packages: make visit order stable 2018-11-02 02:37:01 +00:00