mirror of https://github.com/golang/go.git
We pass around verb/args/wd in many places. Bundle them up as an Invocation instead. goCommandInvocation now updates and returns an input Invocation. packages.Config is conceptually an extra layer of parsing and type-checking on top of a go list invocation. It doesn't make sense for us to construct the latter using the former. A later CL will construct the Config in terms of the Invocation; for now duplicate a bit of logic. Use the environment in the cache key for various module operations rather than the Config hash. I'm not sure either is fully correct but I think the environment captures everything that's likely to matter. This way we don't need Configs in those functions at all. Change-Id: Iebee2705e63638ab365b3ee18b23f8c3e8ca30ce Reviewed-on: https://go-review.googlesource.com/c/tools/+/265237 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> |
||
|---|---|---|
| .. | ||
| analysis.go | ||
| cache.go | ||
| check.go | ||
| error_test.go | ||
| errors.go | ||
| imports.go | ||
| keys.go | ||
| load.go | ||
| mod.go | ||
| mod_tidy.go | ||
| os_darwin.go | ||
| os_windows.go | ||
| parse.go | ||
| parse_test.go | ||
| pkg.go | ||
| session.go | ||
| snapshot.go | ||
| view.go | ||
| view_test.go | ||