Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

无法支持Cgo项目 #158

@NingQue0920

Description

@NingQue0920

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 是可以的

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions