Determine zstd availability earlier on to simplify log
This commit is contained in:
parent
db98c27941
commit
a7a6a6951e
17 changed files with 115 additions and 47 deletions
|
|
@ -28,6 +28,7 @@ import {
|
|||
import { Language } from "./languages";
|
||||
import { Logger } from "./logging";
|
||||
import * as setupCodeql from "./setup-codeql";
|
||||
import { ZstdAvailability } from "./tar";
|
||||
import { ToolsFeature, isSupportedToolsFeature } from "./tools-features";
|
||||
import { shouldEnableIndirectTracing } from "./tracer-config";
|
||||
import * as util from "./util";
|
||||
|
|
@ -359,6 +360,7 @@ export async function setupCodeQL(
|
|||
toolsDownloadStatusReport?: setupCodeql.ToolsDownloadStatusReport;
|
||||
toolsSource: setupCodeql.ToolsSource;
|
||||
toolsVersion: string;
|
||||
zstdAvailability: ZstdAvailability;
|
||||
}> {
|
||||
try {
|
||||
const {
|
||||
|
|
@ -366,6 +368,7 @@ export async function setupCodeQL(
|
|||
toolsDownloadStatusReport,
|
||||
toolsSource,
|
||||
toolsVersion,
|
||||
zstdAvailability,
|
||||
} = await setupCodeql.setupCodeQLBundle(
|
||||
toolsInput,
|
||||
apiDetails,
|
||||
|
|
@ -397,6 +400,7 @@ export async function setupCodeQL(
|
|||
toolsDownloadStatusReport,
|
||||
toolsSource,
|
||||
toolsVersion,
|
||||
zstdAvailability,
|
||||
};
|
||||
} catch (e) {
|
||||
throw new Error(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue