1
0
mirror of https://github.com/golang/go synced 2024-09-30 14:18:32 -06:00
go/gopls/internal
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
..
hooks gopls/doc: generate settings JSON, docs 2020-09-09 20:53:33 +00:00
regtest internal/lsp, go/packages: fix Go 1.15-related overlay bug 2020-09-09 21:09:14 +00:00