aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/list_parse_err.txt
blob: 5aacaa88fae808a59e1a7a3b426443f51ce82a87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 'go list' should report imports, even if some files have parse errors
# before the import block.
go list -e -f '{{range .Imports}}{{.}} {{end}}'
stdout '^fmt '

-- go.mod --
module m

go 1.13

-- a.go --
package a

import "fmt"

-- b.go --
// no package statement