[mod] x/mod: allow for aggressively conslidating requires

1 view
Skip to first unread message

Ian Alexander (Gerrit)

unread,
May 13, 2026, 8:20:32 AM (3 days ago) May 13
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Michael Pratt, golang...@luci-project-accounts.iam.gserviceaccount.com, Michael Matloob, golang-co...@googlegroups.com

Ian Alexander submitted the change

Change information

Commit message:
x/mod: allow for aggressively conslidating requires

This change adds a new function `SetRequireSimplify` that will
aggressively consolidate all go.mod requirements into at most two blocks
(one direct, one indirect).

For golang/go#56471.
Change-Id: If71e124725cbd9b1d9e6fc5ad0a4cf33f34cb3ae
Reviewed-by: Michael Pratt <mpr...@google.com>
Files:
  • M modfile/rule.go
  • M modfile/rule_test.go
Change size: L
Delta: 2 files changed, 480 insertions(+), 8 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: mod
Gerrit-Branch: master
Gerrit-Change-Id: If71e124725cbd9b1d9e6fc5ad0a4cf33f34cb3ae
Gerrit-Change-Number: 739221
Gerrit-PatchSet: 3
Gerrit-Owner: Ian Alexander <ji...@google.com>
Gerrit-Reviewer: Ian Alexander <ji...@google.com>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
Gerrit-CC: Michael Matloob <mat...@golang.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages