From 82c6967adad6319ac08fca4f3e84066a43083963 Mon Sep 17 00:00:00 2001 From: Michael Matloob Date: Fri, 4 Nov 2022 16:29:15 -0400 Subject: [PATCH] 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 --- doc/go1.20.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 2.50.0