]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modget: split resolveCandidates into two methods
authorBryan C. Mills <bcmills@google.com>
Thu, 4 Feb 2021 14:42:48 +0000 (09:42 -0500)
committerBryan C. Mills <bcmills@google.com>
Fri, 19 Feb 2021 01:19:01 +0000 (01:19 +0000)
commit4da0188c6c1ec83db2a3659af8e4eaace155ab80
treec4ce88e06f2c7312cd4a7633b00611f27b407451
parent5f2e24efb3c7e021308d15a26d93e5a7aa3c05f0
cmd/go/internal/modget: split resolveCandidates into two methods

It turns out that the existing call sites of the resolveCandidates
method pass only *either* a slice of queries or a slice of upgrades
(never both), and the behaviors triggered by the two parameters don't
overlap much at all. To clarify the two different operations, split
them into two separate methods.

For #36460

Change-Id: I64651637734fd44fea68740a3cdfbacfb73c19b6
Reviewed-on: https://go-review.googlesource.com/c/go/+/289697
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>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/modget/get.go