Skip to content
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

Old version of dynamic library crate used unless filename/location of crate changed. #132

Closed
aram0112 opened this issue Jan 3, 2024 · 2 comments

Comments

@aram0112
Copy link

aram0112 commented Jan 3, 2024

Hello! I've having a weird issue where when I update and compile a dynamic library crate crate to the same location, overwriting the previous crate, and try to load and run a function from that crate, it uses an outdated version of the library. However, if I copy the crate to a new location and pass in that path, the new version of the crate is used. I was wondering if this is the intended behavior or whether I'm doing something wrong or there is something else I need to do to have the latest changes reflect? Thank you so much!

@nagisa
Copy link
Owner

nagisa commented Jan 3, 2024

Probably this: #59. But either way there's nothing that libloading does specially here. The behaviour comes entirely from the how the platform you're running on is implemented, so you will have to figure out workarounds to the problem yourself.

@nagisa nagisa closed this as completed Jan 3, 2024
@aram0112
Copy link
Author

aram0112 commented Jan 4, 2024

Got it, I apologize for not spotting that one earlier, thank you for your guidance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants