aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_get_fossil.txt
blob: baad544557af8861bed6a0ab30d4126678a2bd8c (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] skip
[!exec:fossil] skip

# Regression test for 'go get' to ensure repositories
# provided by fossil v2.12 and up are able to be fetched
# and parsed correctly.
# Verifies golang.org/issue/42323.


env GO111MODULE=on
env GOPROXY=direct
env GOSUMDB=off

# 'go get' for the fossil repo will fail if fossil
# is unable to determine your fossil user. Easiest
# way to set it for use by 'go get' is specifying
# a any non-empty $USER; the value doesn't otherwise matter.
env USER=fossiluser
env FOSSIL_HOME=$WORK/home

# Attempting to get the latest version of a fossil repo.
go get vcs-test.golang.org/fossil/hello.fossil
! stderr 'unexpected response from fossil info'
grep 'vcs-test.golang.org/fossil/hello.fossil' go.mod
exists $GOPATH/bin/hello.fossil$GOEXE

-- go.mod --
module x
-- $WORK/home/.fossil --