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

Native dependency unpacking not robust when switching architecture #81

Open
haraldsteinlechner opened this issue Feb 29, 2024 · 0 comments

Comments

@haraldsteinlechner
Copy link
Member

haraldsteinlechner commented Feb 29, 2024

This is a corner-case when different processor architectures are used in the same system (which is not that of a rare case on apple silicon macs). Native dependency unpacking will unpack the current architecture, the next run will skip unpacking since the target library is already there leading to dlopen failures when switching between architectures (which can happen accidentally).
See:

if (!File.Exists(outputPath))

My suggestion is to add the architecture to the directory name (as opposed to just the library name). Does somebody see problems with this approach?

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

1 participant