Skip to content

Commit

Permalink
cli: use includeAllVersions when resolving packs
Browse files Browse the repository at this point in the history
The commit adds the `includeAllVersions` flag when querying for
compatible plugins which are resolved for extension-packs, else the
framework might fail early when a plugin is too new compared to our
supported API range.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
  • Loading branch information
vince-fugnitto committed Jun 28, 2023
1 parent 6a13e1f commit 86c22e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-packages/cli/src/download-plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default async function downloadPlugins(ovsxClient: OVSXClient, requestSer
await parallelOrSequence(Array.from(ids, id => async () => {
try {
await rateLimiter.removeTokens(1);
const { extensions } = await ovsxClient.query({ extensionId: id });
const { extensions } = await ovsxClient.query({ extensionId: id, includeAllVersions: true });
const extension = apiFilter.getLatestCompatibleExtension(extensions);
const version = extension?.version;
const downloadUrl = extension?.files.download;
Expand Down

0 comments on commit 86c22e3

Please sign in to comment.