]> Cypherpunks repositories - gostls13.git/commit
cmd/go: reroute vcs-test.golang.org HTTPS requests to the test-local server
authorBryan C. Mills <bcmills@google.com>
Wed, 17 Aug 2022 16:38:27 +0000 (12:38 -0400)
committerBryan Mills <bcmills@google.com>
Tue, 25 Oct 2022 13:22:22 +0000 (13:22 +0000)
commit71048daa2f4e0c23b651d56fa157e1a75e098a82
tree15e497d83c3e28348bc23246b6ac593822d91dc1
parentd5155f61928a55e570beaa214465bc48ddd2c16c
cmd/go: reroute vcs-test.golang.org HTTPS requests to the test-local server

After this CL, the only test requests that should still reach
vcs-test.golang.org are for Subversion repos, which are not yet handled.

The interceptor implementation should also allow us to redirect other
servers (such as gopkg.in) fairly easily in a followup change if
desired.

For #27494.

Change-Id: I8cb85f3a7edbbf0492662ff5cfa779fb9b407136
Reviewed-on: https://go-review.googlesource.com/c/go/+/427254
Auto-Submit: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
23 files changed:
src/cmd/go/go_test.go
src/cmd/go/internal/auth/auth.go
src/cmd/go/internal/vcs/vcs.go
src/cmd/go/internal/vcweb/auth.go [new file with mode: 0644]
src/cmd/go/internal/vcweb/insecure.go [new file with mode: 0644]
src/cmd/go/internal/vcweb/script.go
src/cmd/go/internal/vcweb/vcstest/vcstest.go
src/cmd/go/internal/vcweb/vcweb.go
src/cmd/go/internal/web/http.go
src/cmd/go/script_test.go
src/cmd/go/testdata/vcstest/auth/or401.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/auth/or404.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/auth/ormanylines.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/auth/oronelongline.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/go/custom-hg-hello.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/go/insecure.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/go/missingrepo.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/go/mod/gitrepo1.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/go/modauth404.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/go/test1-svn-git.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/go/test2-svn-git.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/go/v2module.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/insecure.txt [new file with mode: 0644]