]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modload: fix (*mvsReqs).Max when the second argument is the empty...
authorBryan C. Mills <bcmills@google.com>
Sat, 31 Oct 2020 01:00:41 +0000 (21:00 -0400)
committerBryan C. Mills <bcmills@google.com>
Thu, 5 Nov 2020 16:47:53 +0000 (16:47 +0000)
commit67bf1c9979180da6dba7dd523df7d7917fe04048
tree3b7c8849ac95175ac9a033037fbfce4e8d4c2682
parenta19a4dcb987d010b5ed0cecc4b377382f42a6ecc
cmd/go/internal/modload: fix (*mvsReqs).Max when the second argument is the empty string

As far as I can tell, this bug had gone unnoticed because everything
that uses Max so far happened to only ever present the empty string as
the first argument.

For #37438

Change-Id: Ie8c42313157d2c2c17e4058c53b5bb026b95a1c1
Reviewed-on: https://go-review.googlesource.com/c/go/+/266860
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/modload/mvs.go
src/cmd/go/internal/modload/mvs_test.go [new file with mode: 0644]