Files
zeekay 2cde1f9be8 gocache: build cache for the go command with a shared second tier
Implements the GOCACHEPROG protocol (go1.26.4, no GOEXPERIMENT gate) with
two tiers: local disk first, S3-compatible object storage on a miss. Results
one machine compiles are available to the next.

Caches compiles. Link actions are not cached by the go command and are not
addressed here.

The shared tier is bounded by deadline, disabled after three consecutive
failures, and written to through a bounded queue that drops rather than
blocks. Unreachable shared storage degrades to a local-only cache; it cannot
stall or fail a build.

Objects are verified against their output digest before reaching the
compiler. Uploads are off by default. Credentials come from KMS, either
already in the environment or read directly with a machine identity.

No dependencies outside the standard library.
2026-07-26 14:55:52 -07:00

4 lines
43 B
AMPL

module github.com/hanzoai/gocache
go 1.26