44 lines
1.5 KiB
Diff
44 lines
1.5 KiB
Diff
From 2a04aee674284f178b179f738a23a6ed3dd50b8c Mon Sep 17 00:00:00 2001
|
|
From: wangshuo <wangshuo@kylinos.cn>
|
|
Date: Fri, 22 Dec 2023 07:54:36 +0800
|
|
Subject: [PATCH] fix test error about mod_insecure_issue63845
|
|
|
|
---
|
|
.../go/testdata/script/mod_insecure_issue63845.txt | 14 +++++++-------
|
|
1 file changed, 7 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/src/cmd/go/testdata/script/mod_insecure_issue63845.txt b/src/cmd/go/testdata/script/mod_insecure_issue63845.txt
|
|
index 5fa6a4f..a2d5c07 100644
|
|
--- a/src/cmd/go/testdata/script/mod_insecure_issue63845.txt
|
|
+++ b/src/cmd/go/testdata/script/mod_insecure_issue63845.txt
|
|
@@ -8,19 +8,19 @@
|
|
# in cmd/go/internal/vcs.
|
|
|
|
[!net] skip
|
|
-[!git] skip
|
|
+[!exec:git] skip
|
|
[short] skip 'tries to access a nonexistent external Git repo'
|
|
|
|
-env GOPRIVATE=golang.org
|
|
+env GOPRIVATE=goproxy.cn
|
|
env CURLOPT_TIMEOUT_MS=100
|
|
env GIT_SSH_COMMAND=false
|
|
|
|
-! go get -x golang.org/nonexist.git@latest
|
|
-stderr '^git ls-remote https://golang.org/nonexist$'
|
|
-stderr '^git ls-remote git\+ssh://golang.org/nonexist'
|
|
-stderr '^git ls-remote ssh://golang.org/nonexist$'
|
|
+! go get -x goproxy.cn/nonexist.git@latest
|
|
+stderr '^git ls-remote https://goproxy.cn/nonexist$'
|
|
+stderr '^git ls-remote git\+ssh://goproxy.cn/nonexist'
|
|
+stderr '^git ls-remote ssh://goproxy.cn/nonexist$'
|
|
! stderr 'git://'
|
|
-stderr '^go: golang.org/nonexist.git@latest: no secure protocol found for repository$'
|
|
+stderr '^go get goproxy.cn/nonexist.git@latest: no secure protocol found for repository$'
|
|
|
|
-- go.mod --
|
|
module example
|
|
--
|
|
2.27.0
|
|
|