-
Notifications
You must be signed in to change notification settings - Fork 112
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
Fix add_lib_recursively
duping deps across needed and runtime libs
#246
Conversation
add_lib_recursively
duping deps across necessary and runtime libsadd_lib_recursively
duping deps across needed and runtime libs
Like I said in a previous review, why don't we postpone calling |
should we revert the commits for now? |
@dvc94ch It looks like my comment has sort of been addressed, maybe this is ready for merge now but I typically hold off reviewing until at the very least all the basic checks in the CI succeed. Yes, I do feel more comfortable reverting it all, then reapplying+squashing it into a single fresh PR (could be this one) so that we can re-review this feature from the ground up. On the other hand I don't think we have a lot of stuff that we'd like to release now; I wanted to have |
Sorry for running late on this, updated per linter recommendations. |
Unless I've been misunderstood it seems the call to This code is getting pretty messy and horrible (mutating state in Then we only need to figure out what to do when paths to libraries differ, but their name ends up being the same. Could be worth an error, but shouldn't happen if the search paths remain the same across |
I agree with the sentiment entirely, as having two sources that can potentially overlap deeper in their dependency hell isn't doing the current impl's any favors. That would require a much more significant refactor than I'm currently capable of making in a timely manner, so it's better to revert previous iterations of this feature. |
Can't we just pass |
I do realize now that the edge-case for |
This is a fix to an unfortunate regression when iterating on #187, as every
add_lib_recursively
call tracksprovided
libraries separately, leading to situations where chain-dependencies found byreadelf
and inruntime_libs
causeaapt
to fail due to attempting the same library twice.