diff options
| author | Michael Matloob <matloob@golang.org> | 2021-09-03 18:11:00 -0400 |
|---|---|---|
| committer | Michael Matloob <matloob@golang.org> | 2021-09-08 18:48:02 +0000 |
| commit | 65f0d24f73fa5386bf921393cbd26bb8f9cead03 (patch) | |
| tree | 4edf14596f5813cdce41b06a826b6ea15715dd13 /src/testing/testing.go | |
| parent | 37c9552e065fb4331d8cba84c12392806f1ecbbe (diff) | |
| download | go-65f0d24f73fa5386bf921393cbd26bb8f9cead03.tar.xz | |
cmd/go: print offending -mod value in workspace mode
Workspace mode only allows -mod to be set to 'readonly'. When returning
the error for other values of -mod, specify the the value in the error
so it's easier to see what's going on when the go command is invoked
through another tool.
For #45713, #48186
Change-Id: I3ba206a71c7a20c18aeccfa48f3c9dc935a180a4
Reviewed-on: https://go-review.googlesource.com/c/go/+/347593
Trust: Michael Matloob <matloob@golang.org>
Trust: Daniel Martà <mvdan@mvdan.cc>
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Daniel Martà <mvdan@mvdan.cc>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/testing/testing.go')
0 files changed, 0 insertions, 0 deletions
