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:
@@ -1227,10 +1227,12 @@ export class CodeQLCliServer implements Disposable {
|
||||
async packAdd(dir: string, queryLanguage: QueryLanguage) {
|
||||
const args = ["--dir", dir];
|
||||
args.push(`codeql/${queryLanguage}-all`);
|
||||
const addFormat = false;
|
||||
return this.runJsonCodeQlCliCommandWithAuthentication(
|
||||
["pack", "add"],
|
||||
args,
|
||||
`Adding and installing ${queryLanguage} pack dependency.`,
|
||||
addFormat,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user