From edb12a1851ccfd71d7a5254653e851d5f63fea6d Mon Sep 17 00:00:00 2001 From: Christoph Witzko Date: Mon, 6 Feb 2023 14:40:13 +0100 Subject: [PATCH] fix: do not initiate batch download if no plugins are missing --- pkg/plugin/discovery/discovery.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/plugin/discovery/discovery.go b/pkg/plugin/discovery/discovery.go index 2efed877..a402d954 100644 --- a/pkg/plugin/discovery/discovery.go +++ b/pkg/plugin/discovery/discovery.go @@ -126,6 +126,10 @@ func (d *Discovery) FindPluginsWithBatchResolver(resolverName string, pInfos []* pInfo.BinPath = binPath } + if len(missingPlugins) == 0 { + return nil + } + batchResolver := d.resolvers[resolverName].(resolver.BatchResolver) batchDownloadInfo, err := batchResolver.BatchResolvePlugins(missingPlugins) if err != nil {