...

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

Documentation: cmd/go/testdata/script

     1[short] skip
     2
     3env GO111MODULE=on
     4env GOSUMDB=off
     5env GOPROXY=direct
     6
     7# Server responses should be truncated to some reasonable number of lines.
     8# (For now, exactly eight.)
     9! go list -m vcs-test.golang.org/auth/ormanylines@latest
    10stderr '\tserver response:\n(.|\n)*\tline 8\n\t\[Truncated: too many lines.\]$'
    11
    12# Server responses should be truncated to some reasonable number of characters.
    13! go list -m vcs-test.golang.org/auth/oronelongline@latest
    14! stderr 'blah{40}'
    15stderr '\tserver response: \[Truncated: too long\.\]$'
    16
    17# Responses from servers using the 'mod' protocol should be propagated.
    18! go list -m vcs-test.golang.org/go/modauth404@latest
    19stderr '\tserver response: File\? What file\?'

View as plain text