From ff61991aed2871301e3f4fafff65fd67d6b170b5 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 13 Nov 2025 14:33:53 -0500 Subject: [PATCH] cmd/go: fix flaky TestScript/mod_get_direct Use our local git server instead of cloud.google.com/go, which may go down or otherwise reject our traffic. I built and installed git 2.23.0 and confirmed that this updated test still fails if CL 196961 is rolled back. So the test is still accurate at detecting the problem. Change-Id: I58011f6cc62af2f21fbbcc526ba5401f4186eeaf Reviewed-on: https://go-review.googlesource.com/c/go/+/720322 Reviewed-by: Michael Matloob LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Matloob --- src/cmd/go/testdata/script/mod_get_direct.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/go/testdata/script/mod_get_direct.txt b/src/cmd/go/testdata/script/mod_get_direct.txt index 02b10ab6fd..2c89576446 100644 --- a/src/cmd/go/testdata/script/mod_get_direct.txt +++ b/src/cmd/go/testdata/script/mod_get_direct.txt @@ -2,14 +2,14 @@ # 'GOPROXY=direct go get golang.org/x/tools/gopls@master' did not correctly # resolve the pseudo-version for its dependency on golang.org/x/tools. -[!net:cloud.google.com] skip +[short] skip [!git] skip env GO111MODULE=on env GOPROXY=direct env GOSUMDB=off -go list -m cloud.google.com/go@main +go list -m vcs-test.golang.org/git/tagtests.git@master ! stdout 'v0.0.0-' -- go.mod -- -- 2.52.0