]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix flaky TestScript/mod_get_direct
authorRuss Cox <rsc@golang.org>
Thu, 13 Nov 2025 19:33:53 +0000 (14:33 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 13 Nov 2025 21:48:15 +0000 (13:48 -0800)
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 <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@google.com>
src/cmd/go/testdata/script/mod_get_direct.txt

index 02b10ab6fd2a78f4291014fac5f6af25f7eba1e0..2c895764460c1035979b8100fca8f630d7669ba5 100644 (file)
@@ -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 --