aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_download_issue51114.txt
blob: a28d467bb8b1ce44f5b9ebda4d6b439196459d72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[!net:github.com] 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: '

-- 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/