-
Notifications
You must be signed in to change notification settings - Fork 18k
plugin: can't load same plugin using 2 different names #47298
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
I'm not sure why the plugin package is giving that error. I guess the question is: are they the same plugin, or not? It matters because we need to know whether to run the (The plugin package treats identity using filenames, so it thinks they are different plugins. But the runtime uses a content hash, by which the two plugins look identical.) If you build the plugins as separate packages (i.e. don't list |
@randall77 They are the same plugin,I used the same file to build two so files The main program loads the two so files |
Right, but I guess my question is more philosophical. If you load |
https://github.com/edwingeng/hotswap can handle this problem perfectly. |
Duplicate of #29525 |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Both plugins can be loaded
What did you see instead?
panic: plugin.Open("./p2"): plugin already loaded
The text was updated successfully, but these errors were encountered: