Skip to content

Commit

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

Updates #77
Updates tailscale/tailscale#9841

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
(cherry picked from commit 3215ec2)
  • Loading branch information
bradfitz committed Aug 21, 2024
1 parent 53c70fd commit 55eecc0
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 55eecc0

Please sign in to comment.