Plugins: Make it possible to support multiple plugin versions (#82116)
* first pass * use version in more places * add comment * update installer * fix wire * fix tests * tidy * simplify changes * fix in mem * remove unused step * fix step dupe logic for child plugins + add tests
This commit is contained in:
@@ -54,7 +54,7 @@ func newDeregister(pluginRegistry registry.Service) *Deregister {
|
||||
|
||||
// Deregister removes a plugin from the plugin registry.
|
||||
func (d *Deregister) Deregister(ctx context.Context, p *plugins.Plugin) error {
|
||||
if err := d.pluginRegistry.Remove(ctx, p.ID); err != nil {
|
||||
if err := d.pluginRegistry.Remove(ctx, p.ID, p.Info.Version); err != nil {
|
||||
return err
|
||||
}
|
||||
d.log.Debug("Plugin unregistered", "pluginId", p.ID)
|
||||
|
||||
Reference in New Issue
Block a user