[go] cmd/go: simplify go.mod to have at most two require sections

0 views
Skip to first unread message

Ian Alexander (Gerrit)

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

Ian Alexander submitted the change

Unreviewed changes

2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Change information

Commit message:
cmd/go: add constant for requires simplification

This change introduces a new constant `SimplifyRequireVersion` in
preparation for making go.mod files to have at most two require blocks
(one for direct and one for indirect dependencies) when the go version
is 1.27 or higher.

For #56471.
Change-Id: I0dab5c93815dc0dfc5596ff8af00d364a716ae89
Reviewed-by: Michael Pratt <mpr...@google.com>
Reviewed-by: Michael Matloob <mat...@google.com>
Reviewed-by: Michael Matloob <mat...@golang.org>
Files:
  • M src/cmd/go/internal/gover/version.go
Change size: XS
Delta: 1 file changed, 6 insertions(+), 1 deletion(-)
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: go
Gerrit-Branch: master
Gerrit-Change-Id: I0dab5c93815dc0dfc5596ff8af00d364a716ae89
Gerrit-Change-Number: 738740
Gerrit-PatchSet: 5
Gerrit-Owner: Ian Alexander <ji...@google.com>
Gerrit-Reviewer: Ian Alexander <ji...@google.com>
Gerrit-Reviewer: Michael Matloob <mat...@golang.org>
Gerrit-Reviewer: Michael Matloob <mat...@google.com>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages