Skip to content

Commit dbecf76

Browse files
committed
Use a relative path to ignore the runner temporary directory.
1 parent 206e34c commit dbecf76

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/analysis-paths.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analysis-paths.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analysis-paths.test.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analysis-paths.test.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/analysis-paths.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ test("exclude temp dir", async (t) => {
6464
};
6565
analysisPaths.includeAndExcludeAnalysisPaths(config, getRunnerLogger(true));
6666
t.is(process.env["LGTM_INDEX_INCLUDE"], undefined);
67-
t.is(process.env["LGTM_INDEX_EXCLUDE"], tempDir);
67+
t.is(process.env["LGTM_INDEX_EXCLUDE"], "codeql-runner-temp");
6868
t.is(process.env["LGTM_INDEX_FILTERS"], undefined);
6969
});
7070
});

src/analysis-paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function includeAndExcludeAnalysisPaths(
5959
logger.warning(
6060
"Storing the CodeQL Runner in the directory being analyzed is not recommended."
6161
);
62-
pathsIgnore = pathsIgnore.concat(config.tempDir);
62+
pathsIgnore = pathsIgnore.concat(tempRelativeToWorking);
6363
}
6464
if (pathsIgnore.length !== 0) {
6565
process.env["LGTM_INDEX_EXCLUDE"] = buildIncludeExcludeEnvVar(pathsIgnore);

0 commit comments

Comments
 (0)