Throw configuration error when tar is not available

This commit is contained in:
Angela P Wen 2024-11-18 11:21:11 -08:00
parent a1695c562b
commit b500b62cea
9 changed files with 41 additions and 30 deletions

View file

@ -653,6 +653,11 @@ export async function setupCodeQLBundle(
defaultCliVersion: CodeQLDefaultVersionInfo,
logger: Logger,
) {
if (!(await util.isBinaryAccessible("tar", logger))) {
throw new util.ConfigurationError(
"Could not find tar in PATH, so unable to extract CodeQL bundle.",
);
}
const zstdAvailability = await tar.isZstdAvailable(logger);
const source = await getCodeQLSource(