src/cmd/go/testdata/script/list_err_cycle.txt
raw| 1 | # Check that we don't get infinite recursion when loading a package with |
| 2 | # an import cycle and another error. Verifies #25830. |
| 3 | ! go list |
| 4 | stderr 'found packages a \(a.go\) and b \(b.go\)' |
| 5 | |
| 6 | -- go.mod -- |
| 7 | module errcycle |
| 8 | |
| 9 | go 1.16 |
| 10 | -- a.go -- |
| 11 | package a |
| 12 | |
| 13 | import _ "errcycle" |
| 14 | -- b.go -- |
| 15 | package b |