-
Notifications
You must be signed in to change notification settings - Fork 552
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
Global plugin support #3132
Comments
It kind of reminds me of |
would it make sense to create a skeleton |
@joshLong145 we discussed internally and we are going to have separate files to declare the plugins. The current declaration of plugins inside the chain |
@aljo242 This just came to my mind: one complicated thing to handle with this dual plugin declaration is duplicates. If the same plugin is declared globally and in-chain, but with a different version, I think the chain should prevails, but that also means we have to write the code responsible for checking that the plugin version is the expected one. That's something important but can be done at the end or eventually in an other PR. |
Great point |
Currently the plugins must be declared in the
config.yml
of a chain, which means that outside of a chain, it's not possible to use any plugins.This is a constraint we have to tackle to make the plugin system usable outside of a chain. Typically useful if we consider moving the
network
command in a separate plugin.Thus, semantically, there will be global plugins and chain plugins. Not sure yet if this needs to be specified in the manifest of the plugin, but that's definitively needs investigation.
One way to do this is to allow to declare plugins in a config file inside the
.ignite
folder. But for trusted plugins (likenetwork
command), we probably want to make this process more transparent, that means making thenetwork
command available regardless of the configuration.Considering #3131,
ignite plugin add
command would need a--global
flag telling that the plugin have to be installed globally (unless this global/chain plugin property is defined in the manifest of the plugin).The text was updated successfully, but these errors were encountered: