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

     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  
    10  env GO111MODULE=on
    11  env GOPROXY=direct
    12  env 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.
    18  env USER=fossiluser
    19  env FOSSIL_HOME=$WORK/home
    20  
    21  # Attempt to get the latest version of a fossil repo.
    22  go get vcs-test.golang.org/fossil/hello.fossil
    23  ! stderr 'unexpected response from fossil info'
    24  grep 'vcs-test.golang.org/fossil/hello.fossil' go.mod
    25  
    26  -- go.mod --
    27  module x
    28  -- $WORK/home/.fossil --
    29  

View as plain text