Bundle Management API Usability Improvement #688
Labels
component/framework
Categorizes an issue or PR relevant to the framework.
kind/improvement
Categorizes issue or PR as related to improvements.
Our current API relies on bundle ID, which servers as a safe handle to dynamic bundle objects.
Though the usage of bundle ID provides safety, it also brings inconvenience to our users.
They have to traverse the list of installed bundles to find out ID of the bundle they want to manipulate using location or symbolic name.
Another usability issue I found is that we don't support bundles with the same symbolic name but of different versions:
Suppose I want to programmatically install a bundle of the same symbolic name as of an installed bundle but of a different version and it failed, what can I do?
I have no idea of the conflicting symbolic name, since I can not have a look at the logging messaging to find out what's wrong.
Neither can I find it out from a bundle not installed yet.
Without the conflicting symbolic name, I don't know which bundle to uninstall first before installing the new one.
IIRC,
dlopen
can open libraries of the same soname but of different paths on Linux.I can't see why we don't support it at the first place. Maybe it will cause trouble on macOS?
The text was updated successfully, but these errors were encountered: