tools/go/packages
Gergely Brautigam 36c10c0a62 x/tools/go/packages: seems to do nothing when given non-Go files
This CL fixes packages ignoring errors regarding files that have
non .go extensions. Packages can be called with just file names
or path which includes files. These aren't checked at all by
packages if they are go files or not, but it fails silently because
of it.

In more detail, go list fails with named files error in STDERR.
However, that is ignored, because go list notoriously abused STDERR
for non-error messages.

Fixes golang/go#29899

Change-Id: Ie4dc39da0b87200ebd23e6c607396557685e2807
Reviewed-on: https://go-review.googlesource.com/c/tools/+/164663
Reviewed-by: Michael Matloob <matloob@golang.org>
2019-03-20 21:58:29 +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 go/packages/packagestest: add Exported as a type expectations can use 2019-03-13 15:35:39 +00:00
testdata go/packages: add name= query 2018-10-16 20:20:09 +00:00
doc.go go/packages: rename name= query and "disable" it 2019-01-29 21:16:23 +00:00
example_test.go go/packages: remove the Config.Error hook 2018-09-04 20:52:37 +00:00
external.go go/packages: use packagesdriver to fetch sizes for "go list" 2018-12-19 20:36:29 +00:00
golist.go x/tools/go/packages: seems to do nothing when given non-Go files 2019-03-20 21:58:29 +00:00
golist_fallback.go go/packages: make tests pass with custom GOCACHE 2019-01-16 20:24:37 +00:00
golist_fallback_testmain.go go/packages: add missing test variants to fallback loader 2018-09-25 16:56:39 +00:00
golist_overlay.go go/packages: check for containing files after overlay is processed 2018-12-06 19:48:17 +00:00
packages.go go/packages: use strings.EqualFold in sameFile to handle case-insensitive file systems 2019-02-06 17:56:59 +00:00
packages110_test.go go/packages: generate test main files from the golist fallback 2018-09-17 22:19:12 +00:00
packages_test.go x/tools/go/packages: seems to do nothing when given non-Go files 2019-03-20 21:58:29 +00:00
packagescgo_test.go go/...: use recommended issue tracker URLs 2018-12-05 01:41:16 +00:00
stdlib_test.go go/...: use recommended issue tracker URLs 2018-12-05 01:41:16 +00:00
visit.go go/packages: make visit order stable 2018-11-02 02:37:01 +00:00