Skip to content

Plugin dependency graph #22

@janhoy

Description

@janhoy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions