Skip to content

Commit 152643f

Browse files
committed
Add which go output in warning
1 parent 2d672df commit 152643f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/analyze-action.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/analyze-action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ async function run() {
240240

241241
if (goWrapperPath !== goBinaryPath) {
242242
core.warning(
243-
"Unexpected result for `which go`: please ensure that the correct version of Go is installed before the `codeql-action/init` Action is used.",
243+
`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.`,
244244
);
245245
}
246246
}

0 commit comments

Comments
 (0)