Throw configuration error when tar is not available
This commit is contained in:
parent
a1695c562b
commit
b500b62cea
9 changed files with 41 additions and 30 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue