Copy changes and remove extra line

This commit is contained in:
Elena Tanasoiu
2023-02-15 09:57:00 +00:00
parent 086df15357
commit ab29fb759f
2 changed files with 4 additions and 6 deletions

View File

@@ -1218,8 +1218,8 @@ export class CodeQLCliServer implements Disposable {
}
/**
* Adds a list of QL library packs with optional version ranges as dependencies of
* the current package, and then installs them. This command modifies the qlpack.yml
* Adds a core language QL library pack for the given query language as a dependency
* of the current package, and then installs them. This command modifies the qlpack.yml
* file of the current package. Formatting and comments will be removed.
* @param dir The directory where QL pack exists.
* @param language The language of the QL pack.
@@ -1230,7 +1230,7 @@ export class CodeQLCliServer implements Disposable {
return this.runJsonCodeQlCliCommandWithAuthentication(
["pack", "add"],
args,
"Adding and installing pack dependencies.",
`Adding and installing ${queryLanguage} pack dependency.`,
);
}

View File

@@ -69,9 +69,7 @@ export class QlPackGenerator {
const qlPackYml = {
name: this.qlpackName,
version: this.qlpackVersion,
dependencies: {
[`codeql/${this.queryLanguage}-all`]: "*",
},
dependencies: {},
};
await writeFile(qlPackFilePath, this.header + dump(qlPackYml), "utf8");