]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: make get_dash_t test more specific
authorCherry Mui <cherryyz@google.com>
Mon, 20 Mar 2023 20:13:02 +0000 (16:13 -0400)
committerCherry Mui <cherryyz@google.com>
Wed, 22 Mar 2023 21:13:47 +0000 (21:13 +0000)
Currently it uses "go list ...", which includes all packages in
the known universe, and may include unresolved dependencies. The
test for issue #8181 is specifically for that the test dependency
of package b is downloaded. Test that specifically.

Change-Id: Icfbd7e197698b10ae4bc7c8aa3b0f2c477ca6b8e
Reviewed-on: https://go-review.googlesource.com/c/go/+/477837
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>

src/cmd/go/testdata/script/get_dash_t.txt

index 0a0a6084de56b1e9f7d044f865536a6e6e3bbc58..66d217a869fa00c8f2fcc20394842726e0ebce2a 100644 (file)
@@ -5,5 +5,5 @@
 env GO111MODULE=off
 
 go get -v -t github.com/rsc/go-get-issue-8181/a github.com/rsc/go-get-issue-8181/b
-go list ...
+go list -test -deps github.com/rsc/go-get-issue-8181/b
 stdout 'x/build/gerrit'