How does proxy.golang.org discover modules to index?

131 views
Skip to first unread message

Russtopia

unread,
May 25, 2019, 10:27:29 PM5/25/19
to golang-nuts
Perhaps a dumb question and if so I apologize in advance. Reading the
page at https://proxy.golang.org/ I'm unclear as to how the index is
being populated. Is there an API to submit modules to the index, or is
it curated by real humans, and what is the process if so, etc.

Does one have to host one's modules at a 'blessed' site to make it
into this new index? I see big players like github.com, golang.org,
but other non-corporate domains as well, in
https://index.golang.org/index

-R.

Hyang-Ah Hana Kim

unread,
May 28, 2019, 5:15:14 PM5/28/19
to Russtopia, golang-nuts
Hi - 
The index includes the module/version that the proxy.golang.org ever successfully served.
Go commands with GOPROXY=https://proxy.golang.org env var will fetch the specified module/version through the proxy and cause the proxy to learn about them.
As long as the hosting sites are publicly accessible and follow the remote import path protocol (https://golang.org/cmd/go/#hdr-Remote_import_paths)
the go module mirror can access the data and the index.golang.org will list them in the result.
The fastest way to teach the proxy and index about your module version is to run 'GOPROXY=https://proxy.golang.org go get module@version'.


--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAN4yCu82S2nFEgnZKEEbu2naZeX5Z8XvZ%2B2fYjNVmbTAC1v3kg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
__
Reply all
Reply to author
Forward
0 new messages