From 65896f68fc347cb3734922c5dd3576156bf06a49 Mon Sep 17 00:00:00 2001 From: Cherry Mui Date: Mon, 20 Mar 2023 16:13:02 -0400 Subject: [PATCH] cmd/go: make get_dash_t test more specific 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 Reviewed-by: Bryan Mills Run-TryBot: Cherry Mui --- src/cmd/go/testdata/script/get_dash_t.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/testdata/script/get_dash_t.txt b/src/cmd/go/testdata/script/get_dash_t.txt index 0a0a6084de..66d217a869 100644 --- a/src/cmd/go/testdata/script/get_dash_t.txt +++ b/src/cmd/go/testdata/script/get_dash_t.txt @@ -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' -- 2.50.0