-
Notifications
You must be signed in to change notification settings - Fork 18k
plugin: plugin was built with a different version of package internal/goarch #61150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hmm
|
It's also okay on my Debian 11 (bullseye) installation. |
it also works in a debian buster container |
What information can I provide to narrow down why it fails now? The exact same environment worked before I switched to Go 1.21rc2. |
I can go back and forth between the two Go installations and one works while the other doesn't. |
some way for someone else to actually reproduce it. |
It seems to depend on the content of my $HOME. A test account on the desktop works, and so does my normal user when (temporarily) replacing $HOME with an empty directory. Let's see... It turned out to be the content of Now that I have wiped it, I can no longer reproduce the issue. Feel free to close the issue. I still think that this shouldn't have happened, but I understand that it's close to impossible to root cause now. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes. It still worked with Go 1.20.4.
What operating system and processor architecture are you using (
go env
)?Debian GNU/Linux 10 (buster), amd64
go env
OutputWhat did you do?
In Kubernetes, we build golangci-lint and a plugin for it inside the same Go environment. That worked with Go 1.20. When trying to upgrade to 1.21rc2, plugin loading fails with
Unable to load custom analyzer logcheck:../_output/local/bin/logcheck.so, plugin.Open(\"/nvme/gopath/src/k8s.io/kubernetes/_output/local/bin/logcheck\"): plugin was built with a different version of package encoding"
.This only fails on my desktop. It fails differently (for other reasons) in the Kubernetes CI.
Here is a simple reproducer: https://github.com/pohly/go-plugin/tree/master
What did you expect to see?
Plugin should load.
What did you see instead?
plugin was built with a different version of package
(which specific package depends on the plugin)The text was updated successfully, but these errors were encountered: