Skip to content

Commit

Permalink
cmd/go/internal/cache: [tailscale] enable cacheprog GOEXPERIMENT by d…
Browse files Browse the repository at this point in the history
…efault

Updates #77

Signed-off-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
bradfitz committed Oct 22, 2023
1 parent d1c9159 commit 4d90021
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cmd/go/internal/cache/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ func initDefaultCache() {
base.Fatalf("failed to initialize build cache at %s: %s\n", dir, err)
}

if v := cfg.Getenv("GOCACHEPROG"); v != "" && goexperiment.CacheProg {
// We don't require the GOEXPERIMENT in Tailscale's Go tree.
const isTailscaleGoTree = true
if v := cfg.Getenv("GOCACHEPROG"); v != "" && (isTailscaleGoTree || goexperiment.CacheProg) {
defaultCache = startCacheProg(v, diskCache)
} else {
defaultCache = diskCache
Expand Down

0 comments on commit 4d90021

Please sign in to comment.