We use cookies to understand how people use Depot.
👩‍🚀 Introducing Depot Registry
← Back to changelog

It is now possible to remotely cache Go builds (including tests and lints) with Depot Cache. This allows you to instantly share your Go cache between CI and local development environments.

If you're using Depot GitHub Actions runners, we've already pre-configured the runner to use Depot Cache when building Go artifacts. But, if you want to use Depot Cache in a Go project that isn't using our runners, we support that as well by setting the environment variable GOCACHEPROG.

Note: This requires that you're using Go 1.24 or later.

export GOCACHEPROG='depot gocache'