mirror of https://github.com/golang/go.git
We have two parallel code paths for Load and other go command invocations. Unify them by introducing a mode argument to the various functions that run the go command, indicating the purpose of the invocation. That purpose can be used to infer what features should be enabled. In the future, I hope we can use the mode to decide whether mod file updates and network access should be allowed. Change-Id: I49c67fcefc9141287b78c56e9812ee6a8ac8378a Reviewed-on: https://go-review.googlesource.com/c/tools/+/265238 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> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| lsp | ||
| memoize | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typesinternal | ||
| xcontext | ||