- buildtag - cgocall - composites - copylocks - httpresponse - loopclosure - lostcancel - nilfunc - nilness - printf - shadow - shift - stdmethods - structtag - tests - unmarshal - unreachable - unsafeptr - unusedresult staticcheck: go: "1.17" checks: [ "all", "-SA3*", "-SA60...
[runner] processing took 3.984µs with stages: nolint: 1.377µs, exclude-rules: 435ns, max_same_issues: 375ns, skip_dirs: 246ns, path_prefixer: 143ns, uniq_by_line: 124ns, cgo: 123ns, invalid_issue: 117ns, source_code: 115ns, identifier_marker: 112ns, exclude: 108ns, ...
dev: set CGO_ENABLED=1 when running "test" task (golangci#4712) May 9, 2024 README.md docs: update documentation (golangci#4711) May 9, 2024 go.mod build(deps): bump go-simpler.org/musttag from 0.12.1 to 0.12.2 (golan… May 9, 2024 go.sum build(deps): bump go-simpler.org...
注意:我得到了相同的错误`无法导入C (cgo预处理失败)(打字机),无论我在运行golangci-lint时使用哪个版本的golangci-lint我在Github:上看到了这个问题,它被告知要向/usr/local/include.添加头文件(如net-snmp/net-snmp-config.h和net-snmp/mib_api.h)。就我个人而言,我在/usr/include目 ...
errors in package: [/workspace/go-snmp-proxy/snmpproxy/mib.go:9:8: could not import C (cgo preprocessing failed)]"level=error msg="Running error: buildir: analysis skipped: errors in package: [/workspace/go-snmp-proxy/snmpproxy/mib.go:9:8: could not import C (cgo preprocessing failed...
(cgo preprocessing failed)) /src/kafka/consumer.go:17:2: \"github.com/davecgh/go-spew/spew\" imported but not used /src/kafka/consumer.go:8:2: \"strconv\" imported but not used /src/kafka/consumer_channel.go:10:2: \"github.com/prometheus/client_golang/prometheus\" imported but not...
misc cgo: fix linters ignoring CGo files v1.47.2 updated linters: revive: ignore slow rules v1.47.1 updated linters: gci: from 0.4.2 to 0.4.3 gci: remove the use of stdin gci: fix options display tenv: from 1.6.0 to 1.7.0 unparam: bump to HEAD v1.47.0 new linters: ...
CGO_ENABLED="1" GOMOD="/Users/myname/work/go/src/github.com/myproject/repository/go.mod" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -...
gofumpt: panic with autofix and cgo v1.63.0 Enhancements Add support for SuggestedFixes 🎉 (35 linters can "autofix" reports). Formatters (gofmt,goimports,gofumpt,gci) are applied after the suggested fixes. New linters Addexptostdlinterhttps://github.com/ldez/exptostd ...
CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build140861160=/tmp/go-build -gno-record...