This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
无法支持Cgo项目 #158
Comments
Hi @ningque123456 , 可以分享一个样例工程吗,一两个文件可以复现bug就好 |
OK可以看到当前是在windows下,当前报错的文件有没有build constraints,eg |
没有 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
2024-03-26 14:18:07,646 [2088286] WARN - go-linter - Run error: level=warning msg="The linter 'interfacer' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner. "
level=warning msg="The linter 'maligned' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner. Replaced by govet 'fieldalignment'."
level=error msg="[linters_context] typechecking error: D:\light\alphamon\impls\execute_cmd.go:7:2: could not import alphawolf.com/alpha/hx (-: # alphawolf.com/alpha/hx\n..\..\alpha\hx\hxclient.go:479:9: undefined: GetMessageAuth\n..\..\alpha\hx\hxmsg.go:43:14: undefined: GetMessageAuth\n..\..\alpha\hx\hxmsg.go:1220:14: undefined: GetMessageAuth\n..\..\alpha\hx\hxmsg.go:1228:25: undefined: GetMessageAuth\n..\..\alpha\hx\hxmsg.go:1268:11: undefined: GetMessageAuth)"
level=error msg="[linters_context] typechecking error: D:\light\alphamon\impls\t3_conn.go:16:18: undefined: CConnection"
level=error msg="[linters_context] typechecking error: D:\light\alphamon\impls\t3_conn.go:24:20: undefined: T3Client"
level=error msg="[linters_context] typechecking error: D:\light\alphamon\impls\bulk_operation.go:1571:18: undefined: T3Client"
level=error msg="[linters_context] typechecking error: D:\light\alphamon\impls\execute.go:1567:15: undefined: T3Client"
level=error msg="[linters_context] typechecking error: D:\light\alphamon\impls\t3_conn.go:31:2: undefined: ConfigRelease"
level=error msg="[linters_context] typechecking error: D:\light\alphamon\impls\t3_conn.go:32:2: undefined: ConnectionRelease"
level=error msg="[linters_context] typechecking error: D:\light\alphamon\impls\t3_conn.go:66:27: undefined: T3Client"
level=error msg="[linters_context] typechecking error: D:\light\alphamon\impls\t3_conn.go:110:29: undefined: T3Client"
level=warning msg="[runner] Can't run linter goanalysis_metalinter: buildir: failed to load package hx: could not load export data: no export data for "alphawolf.com/alpha/hx""
level=warning msg="[linters_context] interfacer: This linter is fully inactivated: it will not produce any reports."
level=warning msg="[linters_context] maligned: This linter is fully inactivated: it will not produce any reports."
level=error msg="Running error: can't run linter goanalysis_metalinter\nbuildir: failed to load package hx: could not load export data: no export data for "alphawolf.com/alpha/hx""
. Please make sure the project has no syntax error.
这几个undefined错误是通过Cgo引用的C语言动态链接库,导致插件无法正常工作。
但是直接在控制台执行golangci-lint.exe run 是可以的
The text was updated successfully, but these errors were encountered: