Skip to content

Commit d0fe669

Browse files
henrymercerCopilot
andcommitted
Pass tarSupportsZstd to getLatestNightlyBundle
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent d794fa4 commit d0fe669

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/setup-codeql.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ test.serial(
428428
false, // useOverlayAwareDefaultCliVersion
429429
SAMPLE_DOTCOM_API_DETAILS,
430430
GitHubVariant.DOTCOM,
431-
false,
431+
true, // tarSupportsZstd
432432
features,
433433
logger,
434434
);
@@ -498,7 +498,7 @@ test.serial(
498498
false, // useOverlayAwareDefaultCliVersion
499499
SAMPLE_DOTCOM_API_DETAILS,
500500
GitHubVariant.DOTCOM,
501-
false,
501+
true, // tarSupportsZstd
502502
features,
503503
logger,
504504
);

‎src/setup-codeql.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ export async function getCodeQLSource(
479479
{ env: getEnv(), features, logger },
480480
rawLanguages,
481481
variant,
482+
tarSupportsZstd,
482483
);
483484
toolsInput = bundle.url;
484485
}
@@ -1160,13 +1161,12 @@ async function getLatestNightlyBundle(
11601161
action: ActionState<["Logger", "ReadOnlyEnv", "FeatureFlags"]>,
11611162
rawLanguages: string[] | undefined,
11621163
variant: util.GitHubVariant,
1164+
tarSupportsZstd: boolean,
11631165
): Promise<CodeQLBundle> {
1164-
const { logger } = action;
1165-
const zstdAvailability = await tar.isZstdAvailable(logger);
11661166
// The nightly is guaranteed to have a zstd bundle
11671167
const compressionMethod = (await useZstdBundle(
11681168
CODEQL_VERSION_ZSTD_BUNDLE,
1169-
zstdAvailability.available,
1169+
tarSupportsZstd,
11701170
))
11711171
? "zstd"
11721172
: "gzip";

0 commit comments

Comments
 (0)