Skip to content

Commit 303b251

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

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
@@ -493,6 +493,7 @@ export async function getCodeQLSource(
493493
{ env: getEnv(), features, logger },
494494
rawLanguages,
495495
variant,
496+
tarSupportsZstd,
496497
);
497498
toolsInput = bundle.url;
498499
}
@@ -1178,13 +1179,12 @@ async function getLatestNightlyBundle(
11781179
action: ActionState<["Logger", "ReadOnlyEnv", "FeatureFlags"]>,
11791180
rawLanguages: string[] | undefined,
11801181
variant: util.GitHubVariant,
1182+
tarSupportsZstd: boolean,
11811183
): Promise<CodeQLBundle> {
1182-
const { logger } = action;
1183-
const zstdAvailability = await tar.isZstdAvailable(logger);
11841184
// The nightly is guaranteed to have a zstd bundle
11851185
const compressionMethod = (await useZstdBundle(
11861186
CODEQL_VERSION_ZSTD_BUNDLE,
1187-
zstdAvailability.available,
1187+
tarSupportsZstd,
11881188
))
11891189
? "zstd"
11901190
: "gzip";

0 commit comments

Comments
 (0)