...

Text file src/cmd/go/testdata/script/mod_get_fossil.txt

Documentation: cmd/go/testdata/script

     1[short] skip
     2[!exec:fossil] skip
     3
     4# Regression test for 'go get' to ensure repositories
     5# provided by fossil v2.12 and up are able to be fetched
     6# and parsed correctly.
     7# Verifies golang.org/issue/42323.
     8
     9
    10env GO111MODULE=on
    11env GOPROXY=direct
    12env GOSUMDB=off
    13
    14# 'go get' for the fossil repo will fail if fossil
    15# is unable to determine your fossil user. Easiest
    16# way to set it for use by 'go get' is specifying
    17# a any non-empty $USER; the value doesn't otherwise matter.
    18env USER=fossiluser
    19env FOSSIL_HOME=$WORK/home
    20
    21# Attempt to get the latest version of a fossil repo.
    22go get vcs-test.golang.org/fossil/hello.fossil
    23! stderr 'unexpected response from fossil info'
    24grep 'vcs-test.golang.org/fossil/hello.fossil' go.mod
    25
    26-- go.mod --
    27module x
    28-- $WORK/home/.fossil --

View as plain text