mirror of https://github.com/golang/go.git
When GO111MODULE=auto and the workspace is outside of $GOPATH/src, we should still show diagnostics about how to correctly configure multi-module workspaces. We should not show these warnings for workspaces outside of a module within GOPATH. This adds an extra piece to the WorkspacePackages error logic--we may still need to show the errors even if WorkspacePackages returned results. We should eventually consolidate all of this logic to be more cohesive, but for now I think it's more important to cover all of the different cases and add tests. Updates golang/go#42109 Change-Id: I673a03c9840cdaaf7f058de1cda3bf36b96fa7d3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/275553 Trust: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Go Bot <gobot@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: 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 | ||