From 0afd7e85e5d7154161770f06a17d09bf1ffa3e94 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Fri, 27 Dec 2024 13:11:02 -0500 Subject: [PATCH] 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 --- src/cmd/go/alldocs.go | 4 ++++ src/cmd/go/internal/help/helpdoc.go | 4 ++++ 2 files changed, 8 insertions(+) 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. -- 2.48.1