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
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:
Code-Review: +2 by Robert Findley
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI