Use a relative path to ignore the runner temporary directory.
This commit is contained in:
parent
206e34cbb4
commit
dbecf76db8
6 changed files with 6 additions and 6 deletions
|
|
@ -64,7 +64,7 @@ test("exclude temp dir", async (t) => {
|
|||
};
|
||||
analysisPaths.includeAndExcludeAnalysisPaths(config, getRunnerLogger(true));
|
||||
t.is(process.env["LGTM_INDEX_INCLUDE"], undefined);
|
||||
t.is(process.env["LGTM_INDEX_EXCLUDE"], tempDir);
|
||||
t.is(process.env["LGTM_INDEX_EXCLUDE"], "codeql-runner-temp");
|
||||
t.is(process.env["LGTM_INDEX_FILTERS"], undefined);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ export function includeAndExcludeAnalysisPaths(
|
|||
logger.warning(
|
||||
"Storing the CodeQL Runner in the directory being analyzed is not recommended."
|
||||
);
|
||||
pathsIgnore = pathsIgnore.concat(config.tempDir);
|
||||
pathsIgnore = pathsIgnore.concat(tempRelativeToWorking);
|
||||
}
|
||||
if (pathsIgnore.length !== 0) {
|
||||
process.env["LGTM_INDEX_EXCLUDE"] = buildIncludeExcludeEnvVar(pathsIgnore);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue