mirror of https://github.com/golang/go.git
With -mod=readonly set, we no longer automatically add new requires to go.mod, even the temporary one. We have the go mod tidy code lens, but that only works on saved files, even in 1.16 due to golang/go#42491. Plus we may remove the code lens's network access in the future. Add a simple quick fix for import errors that runs (the moral equivalent of) go get on the missing import. Change-Id: Id5764a37ce7db0dce5370da9d648462aefa2042b Reviewed-on: https://go-review.googlesource.com/c/tools/+/274121 Trust: Heschi Kreinick <heschi@google.com> Run-TryBot: Heschi Kreinick <heschi@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| lsp | ||
| memoize | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typesinternal | ||
| xcontext | ||