Don't send --format option for codeql pack add command

By default, this is added when we call `runJsonCodeQlCliCommandWithAuthentication`.

However, `codeql pack add` doesn't support this option so we need to turn it off.

Co-authored-by: Shati Patel <shati-patel@github.com>
This commit is contained in:
Elena Tanasoiu
2023-02-15 11:16:11 +00:00
parent 95f46b3b3a
commit ef8aa14307

View File

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