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

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,