diff options
| author | Bryan C. Mills <bcmills@google.com> | 2021-11-29 14:26:44 -0500 |
|---|---|---|
| committer | Bryan C. Mills <bcmills@google.com> | 2021-12-01 15:43:08 +0000 |
| commit | ab7905540bf83b85cdbd6574e54319126df9dae8 (patch) | |
| tree | 357d894dba1ca889868ce0afb10e996b9cbfefd9 /src/os/exec/exec_test.go | |
| parent | 0e1d553b4d98b71799b86b0ba9bc338de29b7dfe (diff) | |
| download | go-ab7905540bf83b85cdbd6574e54319126df9dae8.tar.xz | |
cmd/go/internal/modload: fix up main-module checks from CL 334932
Some critical Version == "" checks were missing in mvs.go, causing
mvs.Req to fail to retain requirements provided by older versions of
main modules.
A few checks also ought to be rotated to put the less expensive
string-equality checks before the more expensive map lookups.
Fixes #48511
Change-Id: Ib8de9d49a6413660792c003866bfcf9ab7f82ee2
Reviewed-on: https://go-review.googlesource.com/c/go/+/368136
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/os/exec/exec_test.go')
0 files changed, 0 insertions, 0 deletions
