1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:54:40 -07:00
go/internal/lsp/testdata/missingdep
Rebecca Stambler cbb3c69a37 internal/lsp: add errors for missing modules that don't map to an import
Some modules may need to be added to the go.mod without being associated
with an import statement. In such cases, we show the missing module
diagnostic on the whole go.mod file. This isn't ideal, but mapping to
the full require statement isn't that simple, and this is an easy enough
starting point. The code in mod_tidy.go is becoming more unwieldy - I
think I will clean it up in a follow-up.

Fixes golang/go#39784

Change-Id: Ib32ec1fd74c455ce42ba778ea6cba0a475cf245a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/243218
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-07-24 00:18:24 +00:00
..
modules/example.com/extramodule/pkg internal/lsp: add quickfixes for missing dependencies in go.mod 2020-02-07 00:16:14 +00:00
primarymod internal/lsp: add errors for missing modules that don't map to an import 2020-07-24 00:18:24 +00:00
summary.txt.golden internal/lsp: add errors for missing modules that don't map to an import 2020-07-24 00:18:24 +00:00