From: Michael Matloob
Date: Fri, 4 Nov 2022 20:29:15 +0000 (-0400)
Subject: doc: add a release note for fewer pre-compiled GOROOT .a files
X-Git-Tag: go1.20rc1~403
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=82c6967adad6319ac08fca4f3e84066a43083963;p=gostls13.git
doc: add a release note for fewer pre-compiled GOROOT .a files
For #47257
Change-Id: I3837220d02741da92d723484c82d11e82c92151a
Reviewed-on: https://go-review.googlesource.com/c/go/+/448017
TryBot-Result: Gopher Robot
Run-TryBot: Michael Matloob
Reviewed-by: Benny Siegert
Reviewed-by: Bryan Mills
---
diff --git a/doc/go1.20.html b/doc/go1.20.html
index c3f5e8a3ec..4b726b5a77 100644
--- a/doc/go1.20.html
+++ b/doc/go1.20.html
@@ -47,6 +47,18 @@ Do not send CLs removing the interior tags from such phrases.
TODO: https://go.dev/issue/45454: provide build tags for architecture environment variables
+
+ The Go distribution no longer ships with pre-compiled .a
+ files for most of the packages in GOROOT
, now only including
+ .a files for the five packages in GOROOT
that use cgo
.
+ Instead, those packages will be built as needed and cached in the build
+ cache, as is already done for non-main
packages outside
+ GOROOT
. Further, go
install
will
+ also not install .a
files for GOROOT
packages
+ except for those that use cgo
. These changes are intended to
+ reduce the size of the Go distribution, in some cases by up to two-thirds.
+
+
When the main module is located within GOPATH/src
,
go
install
no longer installs libraries for