From: Austin Clements Date: Fri, 27 Dec 2024 18:11:02 +0000 (-0500) Subject: cmd/go: document GOCACHEPROG in go help environment X-Git-Tag: go1.24rc2~6^2~28 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0afd7e85e5d7154161770f06a17d09bf1ffa3e94;p=gostls13.git cmd/go: document GOCACHEPROG in go help environment This adds GOCACHEPROG to the list of environment variables in "go help environment" and points to the cacheprog package documentation for details of the protocol. Fixes #71032 Updates #59719 Change-Id: Ib8f5804926a8fa59237661076d129c2852665ac3 Reviewed-on: https://go-review.googlesource.com/c/go/+/638997 Auto-Submit: Austin Clements Reviewed-by: Mauri de Souza Meneguzzo Reviewed-by: Michael Matloob LUCI-TryBot-Result: Go LUCI Reviewed-by: Brad Fitzpatrick --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 910699cace..88f2e21f82 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -2333,6 +2333,10 @@ // GOCACHE // The directory where the go command will store cached // information for reuse in future builds. +// GOCACHEPROG +// A command (with optional space-separated flags) that implements an +// external go command build cache. +// See 'go doc cmd/go/internal/cacheprog'. // GODEBUG // Enable various debugging facilities. See https://go.dev/doc/godebug // for details. diff --git a/src/cmd/go/internal/help/helpdoc.go b/src/cmd/go/internal/help/helpdoc.go index 7e19ba93d2..311584d4f0 100644 --- a/src/cmd/go/internal/help/helpdoc.go +++ b/src/cmd/go/internal/help/helpdoc.go @@ -506,6 +506,10 @@ General-purpose environment variables: GOCACHE The directory where the go command will store cached information for reuse in future builds. + GOCACHEPROG + A command (with optional space-separated flags) that implements an + external go command build cache. + See 'go doc cmd/go/internal/cacheprog'. GODEBUG Enable various debugging facilities. See https://go.dev/doc/godebug for details.