{"record":{"id":"8a3ac8f0f67605d6","repo":"golangci/golangci-lint","slug":"lookup-plugin-s-w","errorCode":null,"errorMessage":"lookup plugin %s: %w","messagePattern":"lookup plugin (.+?): %w","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/lint/lintersdb/builder_plugin_go.go","lineNumber":104,"sourceCode":"\t\tbasePath, err := fsutils.GetBasePath(context.Background(), cfg.Run.RelativePathMode, cfg.GetConfigDir())\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"get base path: %w\", err)\n\t\t}\n\n\t\t// resolve non-absolute paths relative to config file's directory\n\t\tpath = filepath.Join(basePath, path)\n\t}\n\n\t//nolint:staticcheck,nolintlint // Ignore because the implementation on Windows returns nil\n\tplug, err := plugin.Open(path)\n\t//nolint:staticcheck,nolintlint // Ignore because the implementation on Windows returns nil\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tanalyzers, err := b.lookupPlugin(plug, settings)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"lookup plugin %s: %w\", path, err)\n\t}\n\n\treturn analyzers, nil\n}\n\nfunc (b *PluginGoBuilder) lookupPlugin(plug *plugin.Plugin, settings any) ([]*analysis.Analyzer, error) {\n\t//nolint:staticcheck,nolintlint // Ignore because the implementation on Windows returns nil\n\tsymbol, err := plug.Lookup(\"New\")\n\t//nolint:staticcheck,nolintlint // Ignore because the implementation on Windows returns nil\n\tif err != nil {\n\t\tanalyzers, errP := b.lookupAnalyzerPlugin(plug)\n\t\tif errP != nil {\n\t\t\treturn nil, errors.Join(err, errP)\n\t\t}\n\n\t\treturn analyzers, nil\n\t}\n","sourceCodeStart":86,"sourceCodeEnd":122,"githubUrl":"https://github.com/golangci/golangci-lint/blob/ed7a235d2d771152056fdc142a9855567c5796a9/pkg/lint/lintersdb/builder_plugin_go.go#L86-L122","documentation":"Error from PluginGoBuilder.getAnalyzerPlugin: plugin.Open succeeded but plug.Lookup(\"New\") failed, so the fallback lookupAnalyzerPlugin path was also attempted; both failed and the errors are joined. Means the .so exports neither a 'New' constructor nor the deprecated 'AnalyzerPlugin' symbol — the plugin is not a valid golangci-lint Go plugin.","triggerScenarios":"Thrown at pkg/lint/lintersdb/builder_plugin_go.go:104 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the plugin exports func New(settings any) ([]*analysis.Analyzer, error)","Or export the deprecated AnalyzerPlugin symbol (not recommended)","Rebuild the plugin from a golangci-lint plugin template matching the host version"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ed7a235d2d771152056fdc142a9855567c5796a9","analyzedAt":"2026-09-02T18:47:33.865Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}