Improve/add log messages
This commit is contained in:
parent
7b0b42afec
commit
f6d9b6bcfa
3 changed files with 7 additions and 4 deletions
|
|
@ -342,6 +342,8 @@ async function run() {
|
|||
const fileOutput = await 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(getTemporaryDirectory(), "bin");
|
||||
fs.mkdirSync(tempBinPath, { recursive: true });
|
||||
|
|
@ -360,8 +362,8 @@ async function run() {
|
|||
core.exportVariable(EnvVar.GO_BINARY_LOCATION, goWrapperPath);
|
||||
}
|
||||
} 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}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue