Improve/add log messages

This commit is contained in:
Michael B. Gale 2023-10-04 19:44:03 +01:00
parent 7b0b42afec
commit f6d9b6bcfa
No known key found for this signature in database
GPG key ID: FF5E2765BD00628F
3 changed files with 7 additions and 4 deletions

3
lib/init-action.js generated
View file

@ -178,6 +178,7 @@ async function run() {
const goBinaryPath = await (0, safe_which_1.safeWhich)("go");
const fileOutput = await (0, actions_util_1.getFileType)(goBinaryPath);
if (fileOutput.includes("statically linked")) {
logger.debug(`Applying static binary workaround for Go`);
// Create a directory that we can add to the system PATH.
const tempBinPath = path.resolve((0, actions_util_1.getTemporaryDirectory)(), "bin");
fs.mkdirSync(tempBinPath, { recursive: true });
@ -192,7 +193,7 @@ async function run() {
}
}
catch (e) {
core.warning(`Analyzing Go on Linux, but failed to install wrapper script: ${e}`);
logger.warning(`Analyzing Go on Linux, but failed to install wrapper script. Tracing custom builds may fail: ${e}`);
}
}
// Limit RAM and threads for extractors. When running extractors, the CodeQL CLI obeys the

File diff suppressed because one or more lines are too long