generated from cloudwego/.github
-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Describe the bug
Golang Parser cannot parse ignore field in go.mod.
I triggered this bug when I tried to parse gitea.
panic: failed to parse go.mod file: go.mod:290: unknown block type: ignore
goroutine 1 [running]:
[github.com/cloudwego/abcoder/lang/golang/parser.newGoParser](http://github.com/cloudwego/abcoder/lang/golang/parser.newGoParser)({0xc00053e630, 0x18}, {0xc00053e630?, 0x495edb?}, {0x0, {0x0, 0x0, 0x0}, 0x1, 0x1, ...})
/root/go/pkg/mod/[github.com/cloudwego/[email protected]/lang/golang/parser/parser.go:89](http://github.com/cloudwego/[email protected]/lang/golang/parser/parser.go:89) +0x355
[github.com/cloudwego/abcoder/lang/golang/parser.NewParser(...)](http://github.com/cloudwego/abcoder/lang/golang/parser.NewParser(...))
/root/go/pkg/mod/[github.com/cloudwego/[email protected]/lang/golang/parser/parser.go:65](http://github.com/cloudwego/[email protected]/lang/golang/parser/parser.go:65)
[github.com/cloudwego/abcoder/lang.callGoParser](http://github.com/cloudwego/abcoder/lang.callGoParser)({0x126b060?, 0x2283a80?}, {0xc00053e630?, 0x217c120?}, {{0x15205e3, 0x2}, 0x0, 0x0, 0x0, 0x0, ...})
/root/go/pkg/mod/[github.com/cloudwego/[email protected]/lang/parse.go:216](http://github.com/cloudwego/[email protected]/lang/parse.go:216) +0xf0
[github.com/cloudwego/abcoder/lang.collectSymbol](http://github.com/cloudwego/abcoder/lang.collectSymbol)({0x1727f08, 0x22804e0}, 0x0?, {0xc00053e630?, 0x0?}, {{0x15205e3, 0x2}, 0x0, 0x0, 0x0, ...})
/root/go/pkg/mod/[github.com/cloudwego/[email protected]/lang/parse.go:175](http://github.com/cloudwego/[email protected]/lang/parse.go:175) +0x7d
[github.com/cloudwego/abcoder/lang.Parse](http://github.com/cloudwego/abcoder/lang.Parse)({0x1727f08, 0x22804e0}, {0x7ffd3db41e21?, 0x174ea40?}, {{0x0, 0x0}, 0x0, {{0x15205e3, 0x2}, 0x0, ...}, ...})
/root/go/pkg/mod/[github.com/cloudwego/[email protected]/lang/parse.go:97](http://github.com/cloudwego/[email protected]/lang/parse.go:97) +0x3eb
main.main()
/root/go/pkg/mod/[github.com/cloudwego/[email protected]/main.go:140](http://github.com/cloudwego/[email protected]/main.go:140) +0xcb6
Metadata
Metadata
Assignees
Labels
No labels