Skip to content
Snippets Groups Projects
Commit 2b95d7bb authored by Christoph Witzko's avatar Christoph Witzko
Browse files

fix: only batch prefetch more than one plugin

parent 9111603f
No related branches found
No related tags found
No related merge requests found
......@@ -124,10 +124,15 @@ func (d *Discovery) FindPluginsWithBatchResolver(resolverName string, pInfos []*
pInfo.BinPath = binPath
}
// no plugins need to be downloaded
if len(missingPlugins) == 0 {
return nil
}
if len(missingPlugins) == 1 {
return fmt.Errorf("no batch prefetching possible for a single plugin")
}
batchResolver := d.resolvers[resolverName].(resolver.BatchResolver)
batchDownloadInfo, err := batchResolver.BatchResolvePlugins(missingPlugins)
if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment