1
0
mirror of https://github.com/golang/go synced 2024-11-18 10:54:40 -07:00
go/gopls/internal/regtest
Rebecca Stambler 44a2922940 internal/lsp, go/packages: fix Go 1.15-related overlay bug
Something about the ordering of `go list` results must have changed in
Go 1.15, so overlays with test variants were failing to get the correct
imports. Technically, the correct solution would have been to support
overlays for a package *and* its test variant, but for the purposes of
gopls, it's actually more important that the overlays apply to the
package itself (rather than its test variant).

Fixes golang/go#40685

Change-Id: I3282557502f7f30bf484e1e6c17b90db824bc7d0
Reviewed-on: https://go-review.googlesource.com/c/tools/+/252681
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2020-09-09 21:09:14 +00:00
..
bench_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
codelens_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
completion_test.go internal/lsp: add more tests for package completion 2020-09-09 17:18:21 +00:00
definition_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
diagnostics_test.go internal/lsp: add support for RelatedInformation in diagnostics 2020-09-04 18:57:47 +00:00
doc.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
env_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
env.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
fix_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
formatting_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
generate_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
imports_test.go internal/lsp, go/packages: fix Go 1.15-related overlay bug 2020-09-09 21:09:14 +00:00
link_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
modfile_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
references_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
reg_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
runner.go gopls/internal/regtest: use gopls hooks and add a test for staticcheck 2020-09-03 18:57:44 +00:00
shared_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
stress_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
symbol_helper_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
symbol_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
unix_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
vendor_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
watch_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
workspace_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
wrappers.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00