Replies: 3 comments 2 replies
-
Any suggestions here? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I had the same issue with a different package. I get |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi, plugins and golangci-lint must be compiled with the exact same stack, it's related to how Go plugins work. It's a constraint that is not possible to overcome because it's a Go constraint. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I am trying to setup a private linter with golangci-lint and am following the docs on this page to do it.
I am seeing this error when I try to run my private linter as part of
golangci-lint run
:ERRO Unable to load custom analyzer example:./example.so, plugin.Open("/Users/me/project/example"): plugin was built with a different version of package internal/unsafeheader
My linter is quite simple and has a single dependency in its go.mod file:
I also went ahead and built the plugin with the latest go 1.16 version to try my best to match the data I pulled from the go.mod file in this repo.
I am not sure what I am doing wrong.
Beta Was this translation helpful? Give feedback.
All reactions