| 1 |
# If an import declaration is an absolute path, most commands should report |
| 2 |
# an error instead of going into an infinite loop. |
| 3 |
# Verifies golang.org/issue/42891. |
| 4 |
go list . |
| 5 |
stdout '^m$' |
| 6 |
|
| 7 |
-- go.mod -- |
| 8 |
module m |
| 9 |
|
| 10 |
go 1.16 |
| 11 |
-- m.go -- |
| 12 |
package m |
| 13 |
|
| 14 |
import "/" |