The Go team is providing the following services run by Google: a module mirror for accelerating Go module downloads, an index for discovering new modules, and a global go.sum database for authenticating module content.
proxy.golang.org - a Module Mirror which
meets the spec provided at
go help goproxy.
index.golang.org - a Module Index which acts as a feed of new module versions becoming newly available by proxy.golang.org. The feed can be viewed at https://index.golang.org/index with an optional 'since' parameter (e.g. https://index.golang.org/index?since=2019-04-25T18:00:15.161182-07:00).
These services are in early stages, so even though we don't have any planned outages, you should prepare for instability and possible bugs. We'll be actively working through these issues and improving our services, so please file issues if you spot them (with the prefix "proxy.golang.org:").
To use the mirror as a proxy for the go command, set the following environment variable:
GO111MODULE=on must be set to use any module proxy.
To opt-out of this proxy, you can turn it off by setting
In order to improve our services caching and serving latencies, new versions may not show up immediately. Try again in an hour or two, and if it still isn't showing up, file an issue.
Whenever possible, the mirror aims to cache content in order to avoid breaking builds for people that depend on your package, so this bad release may still be available in the mirror even if it is not available at the origin. The same situation applies if you delete your entire repository. We suggest creating a new version and encouraging people to use that one instead.
The mirror is currently opt-in, so you can continue to rely on direct fetches with
GOPROXY='', or run your own proxy.