Add which go output in warning

This commit is contained in:
Michael B. Gale 2023-10-04 09:50:36 +01:00
parent 4cee553ea6
commit 604448043e
No known key found for this signature in database
GPG key ID: FF5E2765BD00628F
3 changed files with 3 additions and 3 deletions

2
lib/analyze-action.js generated
View file

@ -165,7 +165,7 @@ async function run() {
if (goWrapperPath !== undefined) {
const goBinaryPath = await (0, safe_which_1.safeWhich)("go");
if (goWrapperPath !== goBinaryPath) {
core.warning("Unexpected result for `which go`: please ensure that the correct version of Go is installed before the `codeql-action/init` Action is used.");
core.warning(`Expected \`which go\` to return ${goWrapperPath}, but got ${goBinaryPath}: please ensure that the correct version of Go is installed before the \`codeql-action/init\` Action is used.`);
}
}
await runAutobuildIfLegacyGoWorkflow(config, logger);

File diff suppressed because one or more lines are too long

View file

@ -240,7 +240,7 @@ async function run() {
if (goWrapperPath !== goBinaryPath) {
core.warning(
"Unexpected result for `which go`: please ensure that the correct version of Go is installed before the `codeql-action/init` Action is used.",
`Expected \`which go\` to return ${goWrapperPath}, but got ${goBinaryPath}: please ensure that the correct version of Go is installed before the \`codeql-action/init\` Action is used.`,
);
}
}