proxy.golang.org
Open in
urlscan Pro
2607:f8b0:4004:c19::8d
Public Scan
Submitted URL: http://proxy.golang.org/
Effective URL: https://proxy.golang.org/
Submission: On May 23 via manual from CA — Scanned from CA
Effective URL: https://proxy.golang.org/
Submission: On May 23 via manual from CA — Scanned from CA
Form analysis
0 forms found in the DOMText Content
GO MODULE MIRROR, INDEX, AND CHECKSUM DATABASE 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. Since Go 1.13, the go command by default downloads and authenticates modules using the Go module mirror and Go checksum database. See proxy.golang.org/privacy for privacy information about these services and the go command documentation for configuration details including how to disable the use of these servers or use different ones. If you depend on non-public modules, see the documentation for configuring your environment. SERVICES proxy.golang.org - a module mirror which implements the module proxy protocol. For users downloading large numbers of modules (e.g. for bulk static analysis), the mirror supports a separate endpoint /cached-only that instructs the proxy to return only cached content. This will avoid slow downloads, at the cost of possibly missing some rarely-used modules. GOPROXY=https://proxy.golang.org/cached-only go mod download golang.org/x/tools@v0.1.0 sum.golang.org - an auditable checksum database which will be used by the go command to authenticate modules. Learn more in the go command documentation. index.golang.org - an index which serves a feed of new module versions that become available by proxy.golang.org. The feed can be viewed at https://index.golang.org/index. The feed is served as new line delimited JSON, providing the module path (as Path), the module version (as Version), and the time it was first cached by proxy.golang.org (as Timestamp). The list is sorted in chronological order. There are optional parameters: * 'since': the oldest allowable timestamp (RFC3339 format) for module versions in the returned list. Default is the beginning of time, e.g. https://index.golang.org/index?since=2019-04-10T19:08:52.997264Z * 'limit': the maximum length of the returned list. Default = 2000, Max = 2000, e.g. https://index.golang.org/index?limit=10 * 'include': by default, the index returns module versions that proxy.golang.org has cached copies. If 'include=all', index.golang.org will return all module versions proxy.golang.org or sum.golang.org ever served. Default = "" e.g. https://index.golang.org/index?include=all If you use the index to download many modules from the module mirror, you will want to use the /cached-only endpoint, described above. STATUS: LAUNCHED These services are ready for production use. Please file issues if you spot them, with the title prefix "proxy.golang.org:" (or "index.golang.org:", or "sum.golang.org:"). ENVIRONMENT SETUP These services can only access publicly available source code. If you depend on private modules, set GOPRIVATE to a glob pattern that covers them. See Module configuration for non-public modules in the go command documentation for more details. To opt-out of this module mirror, you can turn it off by setting GOPROXY=direct See the go command documentation for other configuration details. FAQ I COMMITTED A NEW CHANGE (OR RELEASED A NEW VERSION) TO A REPOSITORY, WHY ISN'T IT SHOWING UP WHEN I RUN GO GET -U OR GO LIST -M --VERSIONS? In order to improve our services' caching and serving latencies, new versions may not show up right away. If you want new code to be immediately available in the mirror, then first make sure there is a semantically versioned tag for this revision in the underlying source repository. Then explicitly request that version via go get module@version. The new version should be available within one minute. Note that if someone requested the version before the tag was pushed, it may take up to 30 minutes for the mirror's cache to expire and fresh data about the version to become available. If the version is still not available after 30 minutes, please file an issue. I REMOVED A BAD RELEASE FROM MY REPOSITORY BUT IT STILL APPEARS IN THE MIRROR, WHAT SHOULD I DO? 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. If you would like to hide versions of a module from the go command, as well as pkg.go.dev, you should retract them. Retracting a module version involves adding a retract directive to your go.mod file and publishing a new version. See the Go blog post New module changes in Go 1.16 and the modules reference for details. I'M RUNNING THE GO COMMAND IN AN ENVIRONMENT THAT CAN'T USE THE MIRROR. The go command documentation describes the configuration details including how to disable the use of these servers or use different ones. IF I DON'T SET GOPRIVATE AND REQUEST A PRIVATE MODULE FROM THESE SERVICES, WHAT LEAKS? The proxy and checksum database protocols only send module paths and versions to the remote server. If you request a private module, the mirror will try to download it just as any Go user would and fail in the same way. Information about failed requests isn't published anywhere. The only trace of the request will be in internal logs, which are governed by the privacy policy. WHY DID A PREVIOUSLY AVAILABLE MODULE BECOME UNAVAILABLE IN THE MIRROR? proxy.golang.org does not save all modules forever. There are a number of reasons for this, but one reason is if proxy.golang.org is not able to detect a suitable license. In this case, only a temporarily cached copy of the module will be made available, and may become unavailable if it is removed from the original source and becomes outdated. The checksums will still remain in the checksum database regardless of whether or not they have become unavailable in the mirror. I HAVE DISCOVERED A MALICIOUS MODULE VERSION IN THE MIRROR. WHERE DO I REPORT IT? Following the security policy, send an email to security@golang.org with the word "vulnerability" in the message somewhere.