Explain why we're using --format=json to get the extractor path

This commit is contained in:
Henry Mercer 2023-01-20 14:55:49 +00:00
parent be8f7b01a2
commit 4beb39593b
3 changed files with 7 additions and 1 deletions

3
lib/codeql.js generated
View file

@ -367,6 +367,9 @@ async function getCodeQLForCmd(cmd, checkVersion) {
async extractScannedLanguage(config, language) {
const databasePath = util.getCodeQLDatabasePath(config, language);
// Get extractor location
//
// Request it using `format=json` so we don't need to strip the trailing new line generated by
// the CLI.
let extractorPath = "";
await new toolrunner.ToolRunner(cmd, [
"resolve",

File diff suppressed because one or more lines are too long

View file

@ -650,6 +650,9 @@ export async function getCodeQLForCmd(
async extractScannedLanguage(config: Config, language: Language) {
const databasePath = util.getCodeQLDatabasePath(config, language);
// Get extractor location
//
// Request it using `format=json` so we don't need to strip the trailing new line generated by
// the CLI.
let extractorPath = "";
await new toolrunner.ToolRunner(
cmd,