Skip to content

Commit abbb60e

Browse files
committed
[tailscale] cmd/go/internal/cache: enable cacheprog GOEXPERIMENT by default
Updates #77 Updates tailscale/tailscale#9841 Signed-off-by: Brad Fitzpatrick <[email protected]> (cherry picked from commit 3215ec2)
1 parent 5940021 commit abbb60e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cmd/go/internal/cache/default.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ func initDefaultCache() {
5959
base.Fatalf("failed to initialize build cache at %s: %s\n", dir, err)
6060
}
6161

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

0 commit comments

Comments
 (0)