]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modload: document mvsReqs.Max
authorJay Conrod <jayconrod@google.com>
Thu, 14 May 2020 19:03:26 +0000 (15:03 -0400)
committerJay Conrod <jayconrod@google.com>
Mon, 1 Jun 2020 18:13:51 +0000 (18:13 +0000)
commit8be0de1e7e1f1c3f0d2b4b1ab2b4bc96377a3772
tree8e6ef99c17b6271f346d6cd0532c5d49391be20d
parentf8662a5a96698c5fcf3a77f692e425c7b857e681
cmd/go/internal/modload: document mvsReqs.Max

The version "" denotes the main module, which has no version. The
mvs.Reqs interface documentation hints this is allowed, but it's not
obvious from the implementation in modload.mvsReqs.Max.

Also, replace a related TODO with a comment in mvs.Downgrade.

Fixes #39042

Change-Id: I11e10908c9b3d8c2283eaa5c04bd8e1b936851fd
Reviewed-on: https://go-review.googlesource.com/c/go/+/234003
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modload/mvs.go
src/cmd/go/internal/mvs/mvs.go