]> Cypherpunks repositories - gostls13.git/commit
cmd/go: make TestScript/mod_get_patchmod self-contained
authorBryan C. Mills <bcmills@google.com>
Thu, 29 Oct 2020 20:06:19 +0000 (16:06 -0400)
committerBryan C. Mills <bcmills@google.com>
Fri, 30 Oct 2020 18:06:01 +0000 (18:06 +0000)
commit8494a6243ee5c80da51da8f4e1ad4d719eddf409
tree51102587b62f569835c09a6b50ce7bcebeb3fd0c
parent36d412f7548d90f4764c780a6f7d7da04bb90a9e
cmd/go: make TestScript/mod_get_patchmod self-contained

I find it pretty difficult to reason about test-dependency modules
when they aren't in the same file as the rest of the test.

Now that 'go get' supports replacements (CL 258220 and CL 266018),
we can localize tests that need 'go get' but don't specifically depend
on module proxy semantics.

For #36460
For #37438

Change-Id: Ib37a6c170f251435399dfc23e60d96681a81eadc
Reviewed-on: https://go-review.googlesource.com/c/go/+/266369
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/go/testdata/mod/example.net_pkgremoved_v0.1.0.txt [deleted file]
src/cmd/go/testdata/mod/example.net_pkgremoved_v0.2.0.txt [deleted file]
src/cmd/go/testdata/mod/example.net_pkgremoved_v0.2.1.txt [deleted file]
src/cmd/go/testdata/script/mod_get_patchmod.txt