mirror of https://github.com/golang/go.git
Workspace mode makes more sense as a property of the snapshot, since it is determined based on the modules in the workspace. Move it to the snapshot and enable the GOPATH to modules test. The mode switch means that we may run `go mod` commands before a `go.mod` is on-disk, so add handling for that case. Also, remove the code added in CL 258121 to treat packages starting with a "_/" the same way as command-line arguments--that's not actually correct because perfectly valid packages can also have a "_/" package path prefix. Fixes golang/go#40340 Change-Id: I35044f5d108983ba00df1359698bf14217caa982 Reviewed-on: https://go-review.googlesource.com/c/tools/+/260078 Trust: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| lsp | ||
| memoize | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typesinternal | ||
| xcontext | ||