]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go/internal/mvs: split Reqs into narrower per-function interfaces
authorBryan C. Mills <bcmills@google.com>
Tue, 9 Feb 2021 20:38:18 +0000 (15:38 -0500)
committerBryan C. Mills <bcmills@google.com>
Fri, 19 Feb 2021 01:22:14 +0000 (01:22 +0000)
commit87f425da1433a172c1fa02134a8dab9a3784e24f
tree96b28f966ad90cbd85e5c170b7f81253cf4b6786
parent4da0188c6c1ec83db2a3659af8e4eaace155ab80
cmd/go/internal/mvs: split Reqs into narrower per-function interfaces

Reqs currently combines requirements with upgrades and downgrades.
However, only Upgrade needs the Upgrade method, and only Downgrade
needs the Previous method.

When we eventually add lazy loading, the lazily-loaded module graph
will not be able to compute upgrades and downgrades, so the
implementation work from here to there will be clearer if we are
explicit about which are still needed.

For #36460

Change-Id: I7bf8c2a84ce6bc4ef493a383e3d26850e9a6a6c0
Reviewed-on: https://go-review.googlesource.com/c/go/+/290771
Trust: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/mvs/mvs.go