]> Cypherpunks repositories - gostls13.git/commit
cmd/go: implement Go checksum database support
authorRuss Cox <rsc@golang.org>
Fri, 26 Apr 2019 01:01:17 +0000 (21:01 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 29 Apr 2019 12:39:27 +0000 (12:39 +0000)
commit3cf1d770809453fed8754cf3ddf4028cdd7716fe
tree0ce59b0196c524e37307b000d361ae2017402453
parent203b80ab8639ff9dc0710e22c2b33f2df861363b
cmd/go: implement Go checksum database support

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: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
29 files changed:
src/cmd/go/alldocs.go
src/cmd/go/internal/cfg/cfg.go
src/cmd/go/internal/envcmd/env.go
src/cmd/go/internal/modfetch/bootstrap.go [new file with mode: 0644]
src/cmd/go/internal/modfetch/fetch.go
src/cmd/go/internal/modfetch/key.go [new file with mode: 0644]
src/cmd/go/internal/modfetch/notary.go [deleted file]
src/cmd/go/internal/modfetch/notary_test.go [deleted file]
src/cmd/go/internal/modfetch/pin.go [deleted file]
src/cmd/go/internal/modfetch/proxy.go
src/cmd/go/internal/modfetch/repo.go
src/cmd/go/internal/modfetch/sumdb.go [new file with mode: 0644]
src/cmd/go/internal/sumweb/server.go
src/cmd/go/internal/web/api.go
src/cmd/go/proxy_test.go
src/cmd/go/script_test.go
src/cmd/go/testdata/script/mod_auth.txt
src/cmd/go/testdata/script/mod_download.txt
src/cmd/go/testdata/script/mod_download_hash.txt
src/cmd/go/testdata/script/mod_get_commit.txt
src/cmd/go/testdata/script/mod_get_moved.txt
src/cmd/go/testdata/script/mod_get_pseudo.txt
src/cmd/go/testdata/script/mod_gopkg_unstable.txt
src/cmd/go/testdata/script/mod_notary.txt [deleted file]
src/cmd/go/testdata/script/mod_query_exclude.txt
src/cmd/go/testdata/script/mod_sumdb.txt [new file with mode: 0644]
src/cmd/go/testdata/script/mod_sumdb_cache.txt [new file with mode: 0644]
src/cmd/go/testdata/script/mod_sumdb_golang.txt [new file with mode: 0644]
src/cmd/go/testdata/script/mod_sumdb_proxy.txt [new file with mode: 0644]