diff options
| author | Michael Matloob <matloob@golang.org> | 2026-03-10 12:41:41 -0400 |
|---|---|---|
| committer | Michael Matloob <matloob@google.com> | 2026-03-10 10:46:06 -0700 |
| commit | 7337b4669b587159bc0d6c431c91057b938faa9a (patch) | |
| tree | c4f21ae382da4a3cadc6a66aa1eb99cb33b1f211 /src/cmd/compile/internal/noder | |
| parent | dfd2e8027c77363d7b8fa7fb23e9979ba6c1b167 (diff) | |
| download | go-7337b4669b587159bc0d6c431c91057b938faa9a.tar.xz | |
cmd/go/internal/modload: update WillBeEnabled to check for go.work
In the case where GO111MODULE=auto, we checked whether there was a
go.mod file to see if modules would be enabled, but did not check for a
go.work file. This brought WillBeEnabled out of sync with Init, which
does check for a go.work file. And that resulted with toolchain
selection not taking workspaces into account with GO111MODULE=auto.
For #76728
Change-Id: I9dd232b2e645b97524ffdf544bcd7e3d6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/753700
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Hongxiang Jiang <hxjiang@golang.org>
Reviewed-by: Michael Matloob <matloob@google.com>
Diffstat (limited to 'src/cmd/compile/internal/noder')
0 files changed, 0 insertions, 0 deletions
