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
plugin: changing the plugin code and re-compiling it, the new changes do not add up #33230
Comments
What do you mean by "do not add up"? |
@ianlancetaylor from looking at his @Shivam010 Plugins cannot be unloaded so there is no way to do what you want except to open a new plugin with a different name every time. You can follow #20461 |
Thank you @AlexRouSg |
@Shivam010 - does @AlexRouSg's suggestion answer the question? |
The suggestion turns out to be the same as what I had in my mind. So yes, it solves the problem, for now. I have gone through issue #20461 but am open for a more concrete solution for hot code reload on runtime. |
For better help finding a solution, please see https://github.com/golang/go/wiki/Questions |
Thanks for confirming @Shivam010. I will go ahead and close the issue as there is no bug to fix here. For solutions on how to approach your issue, please reach out to the various forums in the link above. We primarily use the issue tracker for bug fixes and feature proposals. Thank you. |
On changing the plugin code and re-compiling it, the new changes do not add up on opening the newly generated
.so file
, usingplugin.Open
Follow the code in main.go or run the docker image
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?
Follow the code and process in the repository
What did you expect to see?
Link
What did you see instead?
Link
Hot Fix
Build the plugins with a unique name for
.so
files, i.e. explicitly generate a new so File instead of overwriting the file for the same nameThe text was updated successfully, but these errors were encountered: