| 1 |
[short] skip |
| 2 |
|
| 3 |
env GO111MODULE=on |
| 4 |
env GOSUMDB=off |
| 5 |
env 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 |
| 10 |
stderr '\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}' |
| 15 |
stderr '\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 |
| 19 |
stderr '\tserver response: File\? What file\?' |