mirror of https://github.com/golang/go.git
Keep a workspace module dir around for running the go command against a snapshot, bound to the contents of the workspace modfile. This uses the cache's resource model to share the workspace module dir across snapshots if it is not invalidated, and to delete it when it is no longer in-use by a snapshot. Of course, the go command will still only see files on the filesystem, but using this immutable model was most consistent with the immutable workspace. For golang/go#41836 Change-Id: Iaec544283b2f545071e5cab1d0ff2a66e6d24dff Reviewed-on: https://go-review.googlesource.com/c/tools/+/263938 Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> Trust: Robert Findley <rfindley@google.com> |
||
|---|---|---|
| .. | ||
| 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 | ||
| workspace.go | ||
| workspace_test.go | ||