[tools] internal/stdlib: IsBootstrap and BootstrapVersion

0 views
Skip to first unread message

Alan Donovan (Gerrit)

unread,
Nov 10, 2025, 2:52:34 PM (2 days ago) Nov 10
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Go LUCI, Robert Findley, Dmitri Shuralyov, golang-co...@googlegroups.com

Alan Donovan submitted the change

Unreviewed changes

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

Change information

Commit message:
internal/stdlib: IsBootstrap and BootstrapVersion

This change causes the stdlib package to expose a predicate that
reports whether a package is one of the low-level ones covered
by the bootstrapping policy. Such packages must not use features
of Go later than the version of the bootstrap toolchain, which
is exposed by the BootstrapVersion constant.

For golang/go#71859

+ test
Change-Id: I0ba9914a9c3c76bcc59feb41052d5b2a31e5ac49
Reviewed-by: Robert Findley <rfin...@google.com>
Auto-Submit: Alan Donovan <adon...@google.com>
Files:
  • M internal/stdlib/deps.go
  • M internal/stdlib/deps_test.go
  • M internal/stdlib/generate.go
  • M internal/stdlib/import.go
  • M internal/stdlib/manifest.go
  • M internal/stdlib/testdata/nethttp.deps
  • M internal/stdlib/testdata/nethttp.imports
Change size: L
Delta: 7 files changed, 652 insertions(+), 330 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Robert Findley
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I0ba9914a9c3c76bcc59feb41052d5b2a31e5ac49
Gerrit-Change-Number: 718780
Gerrit-PatchSet: 5
Gerrit-Owner: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Robert Findley <rfin...@google.com>
Gerrit-CC: Dmitri Shuralyov <dmit...@golang.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages