Skip to content

Commit e9787c2

Browse files
committed
Hack to avoid CodeQL CLI v2.12.3
1 parent 56d283f commit e9787c2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

extensions/ql-vscode/src/distribution.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,15 @@ class ExtensionSpecificDistributionManager {
315315
const extensionSpecificRelease = this.getInstalledRelease();
316316
const latestRelease = await this.getLatestRelease();
317317

318+
// v2.12.3 was released with a bug that causes the extension to fail
319+
// so we force the extension to ignore it.
320+
if (
321+
extensionSpecificRelease &&
322+
extensionSpecificRelease.name === "v2.12.3"
323+
) {
324+
return createUpdateAvailableResult(latestRelease);
325+
}
326+
318327
if (
319328
extensionSpecificRelease !== undefined &&
320329
codeQlPath !== undefined &&
@@ -430,6 +439,12 @@ class ExtensionSpecificDistributionManager {
430439
this.versionRange,
431440
this.config.includePrerelease,
432441
(release) => {
442+
// v2.12.3 was released with a bug that causes the extension to fail
443+
// so we force the extension to ignore it.
444+
if (release.name === "v2.12.3") {
445+
return false;
446+
}
447+
433448
const matchingAssets = release.assets.filter(
434449
(asset) => asset.name === requiredAssetName,
435450
);

0 commit comments

Comments
 (0)