Output final hash for debuggin

This commit is contained in:
Marco Gario
2020-12-09 21:56:36 +01:00
parent decd1b45be
commit 991cb0536d
3 changed files with 5 additions and 7 deletions

5
lib/init-action.js generated
View File

@@ -165,15 +165,14 @@ async function compileQueries(codeql, config, logger) {
}
// Compute hash
const globHash = require("glob-hash");
logger.info("Temp dir ${config.tempDir}");
const finalHash = await globHash({
include: [
`${config.tempDir}/**/.cache/data/**`,
`${config.toolCacheDir}/**/.cache/data/**`,
],
files: true,
files: false,
});
logger.info(finalHash);
logger.info(`FinalHash: ${finalHash}`);
return finalHash;
}
void runWrapper();

File diff suppressed because one or more lines are too long

View File

@@ -288,15 +288,14 @@ async function compileQueries(
}
// Compute hash
const globHash = require("glob-hash");
logger.info("Temp dir ${config.tempDir}");
const finalHash = await globHash({
include: [
`${config.tempDir}/**/.cache/data/**`,
`${config.toolCacheDir}/**/.cache/data/**`,
],
files: true,
files: false, // MG: List matched files for debugging
});
logger.info(finalHash);
logger.info(`FinalHash: ${finalHash}`);
return finalHash;
}