Don't try to parse output of codeql pack add as JSON (#3323)

This commit is contained in:
Shati Patel
2024-02-07 15:07:55 +00:00
committed by GitHub
parent f2eea4025a
commit b418f479d6

View File

@@ -1384,13 +1384,10 @@ export class CodeQLCliServer implements Disposable {
async packAdd(dir: string, queryLanguage: QueryLanguage) {
const args = ["--dir", dir];
args.push(`codeql/${queryLanguage}-all`);
return this.runJsonCodeQlCliCommandWithAuthentication(
return this.runCodeQlCliCommand(
["pack", "add"],
args,
`Adding and installing ${queryLanguage} pack dependency.`,
{
addFormat: false,
},
);
}