mirror of
https://github.com/golang/go
synced 2024-11-18 17:04:41 -07:00
fdb8f0bb4e
The imports ProcessEnv contains cached module and filesystem state. This change allows gopls to use the same ProcessEnv and resolver across multiple calls to the internal/imports library. A ProcessEnv belongs to a view, because the cached module state depends on the module that is open in the workspace. Since we do not yet track whether the 'go.mod' file has changed, we conservatively reset the cached state in the module resolver before every call to imports.Process. Change-Id: I27c8e212cb0b477ff425d5ed98a544b27b7d92ee Reviewed-on: https://go-review.googlesource.com/c/tools/+/184921 Run-TryBot: Suzy Mueller <suzmue@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
---|---|---|
.. | ||
testdata/mod | ||
fix_test.go | ||
fix.go | ||
imports.go | ||
mkindex.go | ||
mkstdlib.go | ||
mod_112_test.go | ||
mod_test.go | ||
mod.go | ||
proxy_112_test.go | ||
proxy_113_test.go | ||
sortimports.go | ||
zstdlib.go |