-
Notifications
You must be signed in to change notification settings - Fork 41
Description
Spinoff from pf4j/pf4j#51
There is currently no provision for building a dependency graph before starting an install/download with pf4j-update.
If a dependency stated in plugins.json
is neither installed (PluginManager) or available in any of the UpdateRepositories, then the install process should simply fail before starting to download the requested plugin.
Perhaps the framework could provide an API to resolve dependencies from PluginInfo
into a graph by consulting both PluginManager and UpdateManager. If a remote plugin depends on some plugin which is not downloaded, the API could look for the dependency id in all repositories, and if it is found, look for further dependencies etc until graph is complete. The API would make it easy for UIs to check whether a given plugin is installable or updateable before actually starting the install.