]> Cypherpunks repositories - gostls13.git/commit
cmd/go: in TestScript/mod_replace, download an explicit module path
authorBryan C. Mills <bcmills@google.com>
Fri, 21 May 2021 20:33:42 +0000 (16:33 -0400)
committerBryan C. Mills <bcmills@google.com>
Fri, 21 May 2021 21:07:03 +0000 (21:07 +0000)
commit3c656445f139d8b6def40aa7beffd5da9fceccdb
tree89e7f126ee724a036d7ce9e21543cccd7cc388ba
parent76b2d6afed1e22556bd6c52e74b546eb8bf9a225
cmd/go: in TestScript/mod_replace, download an explicit module path

As of CL 318629, 'go mod download' without arguments does not save
checksums for module source code. Without a checksum, 'go list' will
not report the location of the source code even if it is present, in
order to prevent accidental access of mismatched code.

Downloading an explicit module here also more clearly expresses the
intent of the test (“download this module and see where it is”), and
may be somewhat more efficient (since the test doesn't need source
code for the other modules in the build list).

Updates #45332

Change-Id: Ic589b22478e3ed140b95365bb6729101dd598ccc
Reviewed-on: https://go-review.googlesource.com/c/go/+/321956
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/go/testdata/script/mod_replace.txt