• Russ Cox's avatar
    cmd/go: implement Go checksum database support · 3cf1d770
    Russ Cox authored
    This CL adds support for consulting the Go checksum database
    when downloading a module that is not already listed in go.sum.
    The overall system is described at golang.org/design/25530-sumdb,
    and this CL implements the functionality described specifically in
    golang.org/design/25530-sumdb#command-client.
    
    Although the eventual plan is to set GOPROXY and GOSUMDB to
    default to a Google-run proxy serving the public Go ecosystem,
    this CL leaves them off by default.
    
    Fixes #30601.
    
    Change-Id: Ie46140f93c6cc2d85573fbce0878a258819ff44d
    Reviewed-on: https://go-review.googlesource.com/c/go/+/173951
    Run-TryBot: Russ Cox <rsc@golang.org>
    Reviewed-by: default avatarEmmanuel Odeke <emm.odeke@gmail.com>
    Reviewed-by: default avatarJay Conrod <jayconrod@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    3cf1d770
sumdb.go 6.87 KB