mirror of
https://github.com/golang/go
synced 2024-09-30 08:28:34 -06:00
2db8f0ff89
When we're in workspace module mode, there may not be a go.mod at the root of the workspace, so checking modURI != "" doesn't tell us whether module mode is on. Add a flag to workspaceMode which is exactly that. There are probably many more places that should be updated, but since the design is in flux I don't want to cause more churn than necessary. This is enough to unblock -mod=readonly by default. (I missed this in CL 253799 because I was running the wrong Go Version.) Change-Id: I718ee44c7a2547c90f9d62393aba390c9b4b0f46 Reviewed-on: https://go-review.googlesource.com/c/tools/+/254756 Trust: Heschi Kreinick <heschi@google.com> Run-TryBot: Heschi Kreinick <heschi@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
analysisinternal | ||
apidiff | ||
event | ||
fakenet | ||
fastwalk | ||
gocommand | ||
gopathwalk | ||
imports | ||
jsonrpc2 | ||
lsp | ||
memoize | ||
packagesinternal | ||
proxydir | ||
span | ||
stack | ||
testenv | ||
tool | ||
typesinternal | ||
xcontext |