mirror of
https://github.com/github/codeql-action.git
synced 2026-10-21 02:01:27 +00:00
Break out tracer-config.ts
This commit is contained in:
4
lib/codeql.js
generated
4
lib/codeql.js
generated
@@ -231,14 +231,12 @@ function getCodeQLForCmd(cmd) {
|
||||
'--format=json'
|
||||
]);
|
||||
},
|
||||
getTracerEnv: async function (databasePath, compilerSpec) {
|
||||
getTracerEnv: async function (databasePath) {
|
||||
let envFile = path.resolve(databasePath, 'working', 'env.tmp');
|
||||
const compilerSpecArg = compilerSpec ? ["--compiler-spec=" + compilerSpec] : [];
|
||||
await exec.exec(cmd, [
|
||||
'database',
|
||||
'trace-command',
|
||||
databasePath,
|
||||
...compilerSpecArg,
|
||||
...getExtraOptionsFromEnv(['database', 'trace-command']),
|
||||
process.execPath,
|
||||
path.resolve(__dirname, 'tracer-env.js'),
|
||||
|
||||
Reference in New Issue
Block a user