]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: document the build cache as safe for concurrent use
authorSean Liao <sean@liao.dev>
Mon, 2 Dec 2024 18:32:36 +0000 (18:32 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 9 Dec 2024 15:27:42 +0000 (15:27 +0000)
Fixes #26677

Change-Id: I2ca0408503000ccaddb0bd1fd359381ddd4fb699
Reviewed-on: https://go-review.googlesource.com/c/go/+/632895
Reviewed-by: Michael Matloob <matloob@golang.org>
Auto-Submit: Sam Thanawalla <samthanawalla@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/help/helpdoc.go

index f227d93de70b7d60201e4ad527d9c72e03a3da71..3a4473902cb8f1c33bc5a8465ea4ca58d929932f 100644 (file)
 // The go command caches build outputs for reuse in future builds.
 // The default location for cache data is a subdirectory named go-build
 // in the standard user cache directory for the current operating system.
+// The cache is safe for concurrent invocations of the go command.
 // Setting the GOCACHE environment variable overrides this default,
 // and running 'go env GOCACHE' prints the current cache directory.
 //
index d373c675f66886be6d6973e851abc9b41332d357..e1240de710b7a98244fc003b7783e1479c9eabc0 100644 (file)
@@ -809,6 +809,7 @@ var HelpCache = &base.Command{
 The go command caches build outputs for reuse in future builds.
 The default location for cache data is a subdirectory named go-build
 in the standard user cache directory for the current operating system.
+The cache is safe for concurrent invocations of the go command.
 Setting the GOCACHE environment variable overrides this default,
 and running 'go env GOCACHE' prints the current cache directory.