diff options
| author | Michael Matloob <matloob@golang.org> | 2026-03-06 13:51:03 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-06 11:38:51 -0800 |
| commit | e36ae89c186a5220075ef3ee0b7e2a41470fa6dc (patch) | |
| tree | e4feca8f898bc30deec92b1ec256f2d81ab08c22 /src/cmd | |
| parent | 21c9de8c1d24f18e692e456d330d74310d7b6cd3 (diff) | |
| download | go-e36ae89c186a5220075ef3ee0b7e2a41470fa6dc.tar.xz | |
cmd/go/testdata/script: rewrite mod_download_issue51114 to use vcstest
So that it doesn't try to fetch from github.
Change-Id: I634e9ca2e222f4f650c05faf60a973aa6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/752361
Reviewed-by: Michael Matloob <matloob@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Michael Matloob <matloob@google.com>
Auto-Submit: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/cmd')
| -rw-r--r-- | src/cmd/go/testdata/script/mod_download_issue51114.txt | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/cmd/go/testdata/script/mod_download_issue51114.txt b/src/cmd/go/testdata/script/mod_download_issue51114.txt index a28d467bb8..d5515463f4 100644 --- a/src/cmd/go/testdata/script/mod_download_issue51114.txt +++ b/src/cmd/go/testdata/script/mod_download_issue51114.txt @@ -1,29 +1,14 @@ -[!net:github.com] skip +[short] skip [!git] skip -# Redirect git to a test-specific .gitconfig. -# GIT_CONFIG_GLOBAL suffices for git 2.32.0 and newer. -# For older git versions we also set $HOME. -env GIT_CONFIG_GLOBAL=$WORK${/}home${/}gopher${/}.gitconfig -env HOME=$WORK${/}home${/}gopher -exec git config --global --show-origin user.name -stdout 'Go Gopher' - env GOPROXY=direct ! go mod download -stderr '^go: github\.com/golang/notexist/subdir@v0.1.0: reading github\.com/golang/notexist/subdir/go\.mod at revision subdir/v0\.1\.0: ' +stderr '^go: vcs-test.golang.org/notexist.git/subdir@v0.1.0: reading vcs-test\.golang\.org/notexist.git/subdir/go\.mod at revision subdir/v0\.1\.0: ' -- go.mod -- module test go 1.18 -require github.com/golang/notexist/subdir v0.1.0 - --- $WORK/home/gopher/.gitconfig -- -[user] - name = Go Gopher - email = gopher@golang.org -[url "git@github.com:"] - insteadOf = https://github.com/ +require vcs-test.golang.org/notexist.git/subdir v0.1.0 |
