Skip to content

Check Go modules through CloudRepo

Go checks every public module it downloads against sum.golang.org, Go’s checksum database. Your CloudRepo Go proxy or group relays it. So the go command reads every checksum through CloudRepo, and checks each one with Go’s own key for sum.golang.org.

  • Your builds do not need to reach sum.golang.org, only CloudRepo.
  • The check stays on. You need no GONOSUMDB setting.
  • Modules from CloudRepo are checked the same way as modules from proxy.golang.org.

Nothing new. Point GOPROXY at your Go proxy or group, as Pull Go modules through CloudRepo shows, and leave GOSUMDB as it is.

A build whose go.sum already lists a module does not ask about it again. Adding or upgrading a dependency does. GOSUMDB=off and a GONOSUMDB pattern turn the check off. We do not recommend either.

View as Markdown