1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:54:40 -07:00
go/go
Michael Matloob 43d3a2ca2a go/packages: update tests to reflect changes in golang.org/cl/198459
That change changes the name of an ad-hoc package go list produces
to contain the names of the files instead of just being called
"command-line-arguments". It also means go list will report multiple
packages for an ad-hoc package that's not saved on disk that contains
multiple sources.

Update test cases that depend on this behavior.

One thing to be aware of: the change in go list (without additional
changes in go/packages) will break users depending on ad-hoc
packages with multiple files, when the any of the  files don't exist
on disk. We're not adding a work-around in this cl because overlays
aren't guaranteed to be 100% correct and the LSP doesn't need this
functionality. If this turns out to be a problem we can fix it.

Change-Id: I342cd3cb54bf35992186ee02ddd9ac316ff1db4f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/199097
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-10-04 21:17:43 +00:00
..
analysis go/analysis/analysistest: fix nil pointer dereference when sorting facts 2019-10-04 19:10:47 +00:00
ast go/ast/inspector: fix a small typo 2019-01-10 14:16:07 +00:00
buildutil all: fix more typos 2019-09-11 15:13:14 +00:00
callgraph all: add a space before +build in build tag comments 2019-09-08 12:23:18 +00:00
cfg go/cfg: stop once we've found the fallthrough target 2019-07-19 00:04:45 +00:00
expect go/expect: rewrite the expectation parser 2018-11-30 19:57:46 +00:00
gccgoexportdata go/gccgoexportdata: correctly handle archive files containing string tables 2016-11-09 21:28:38 +00:00
gcexportdata go/gcexportdata: use IExportData when writing gcexportdata 2019-10-04 02:16:33 +00:00
internal go/internal/gcimporter: support Go versions < 1.11 2019-10-04 18:21:43 +00:00
loader all: skip more memory-intensive tests on linux-arm 2019-08-30 17:05:41 +00:00
packages go/packages: update tests to reflect changes in golang.org/cl/198459 2019-10-04 21:17:43 +00:00
pointer all: fix more typos 2019-09-11 15:13:14 +00:00
ssa go/ssa: make a setNumable interface 2019-10-01 17:08:58 +00:00
types all: fix more typos 2019-09-11 15:13:14 +00:00
vcs go/vcs: ignore "mod" VCS type 2019-05-06 14:53:03 +00:00