Skip to content

Custom plug-in running error #5236

@caiwenxuan

Description

@caiwenxuan

Welcome

  • Yes, I'm using a binary release within 2 latest releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've read the typecheck section of the FAQ.
  • Yes, I've tried with the standalone linter if available (e.g., gocritic, go vet, etc.).
  • I agree to follow this project's Code of Conduct

Description of the problem

I used golangci-lint with tag=v1.62.2, and confirmed that the go.mod version used to generate the custom plugin is the same as tag=v1.62.2, and the go version is the same. Why is it reporting an error?

image
The package version corresponds to the link below
https://github.com/golangci/golangci-lint/blob/89476e7a1eaa0a8a06c17343af960a5fd9e7edb7/go.mod

Version of golangci-lint

Details
$ golangci-lint --version
# Paste output here
root@683283a55bb1:/work/test/example-plugin-linter# golangci-lint version
golangci-lint has version 1.62.2 built with go1.23.3 from 89476e7a on 2024-11-25T14:16:01Z

Configuration

Details
# paste configuration file or CLI flags here

Go environment

Details
$ go version && go env
# paste output here
go version go1.23.3 linux/amd64
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.3'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/root/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/work/test/example-plugin-linter/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build1315462551=/tmp/go-build -gno-record-gcc-switches'

Verbose output of running

Details
$ golangci-lint cache clean
$ golangci-lint run -v
# paste output here
root@683283a55bb1:/work/test/example-plugin-linter# golangci-lint cache clean
root@683283a55bb1:/work/test/example-plugin-linter# golangci-lint run -v
INFO golangci-lint has version 1.62.2 built with go1.23.3 from 89476e7a on 2024-11-25T14:16:01Z
INFO [config_reader] Config search paths: [./ /work/test/example-plugin-linter /work/test /work / /root]
INFO [config_reader] Used config file .golangci.yml
Error: build linters: unable to load custom analyzer "example": example.so, plugin: not implemented
Failed executing command with error: build linters: unable to load custom analyzer "example": example.so, plugin: not implemented

A minimal reproducible example or link to a public repository

Details
// add your code here

Validation

  • Yes, I've included all information above (version, config, etc.).

Supporter

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions