Add which go output in warning
This commit is contained in:
parent
4cee553ea6
commit
604448043e
3 changed files with 3 additions and 3 deletions
2
lib/analyze-action.js
generated
2
lib/analyze-action.js
generated
|
|
@ -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
|
|
@ -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.`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue