Include "Linux" in diagnostic name and message
This commit is contained in:
parent
1ac88f37c7
commit
93f93fc2ad
3 changed files with 5 additions and 5 deletions
4
lib/init-action.js
generated
4
lib/init-action.js
generated
|
|
@ -225,8 +225,8 @@ async function run() {
|
||||||
catch (e) {
|
catch (e) {
|
||||||
logger.warning(`Failed to determine the location of the Go binary: ${e}`);
|
logger.warning(`Failed to determine the location of the Go binary: ${e}`);
|
||||||
if (e instanceof actions_util_1.FileCmdNotFoundError) {
|
if (e instanceof actions_util_1.FileCmdNotFoundError) {
|
||||||
(0, diagnostics_1.addDiagnostic)(config, languages_1.Language.go, (0, diagnostics_1.makeDiagnostic)("go/workflow/file-program-unavailable", "The `file` program is required, but does not appear to be installed", {
|
(0, diagnostics_1.addDiagnostic)(config, languages_1.Language.go, (0, diagnostics_1.makeDiagnostic)("go/workflow/file-program-unavailable", "The `file` program is required on Linux, but does not appear to be installed", {
|
||||||
markdownMessage: "CodeQL was unable to find the `file` program on this system. Ensure that the `file` program is installed on the runner and accessible.",
|
markdownMessage: "CodeQL was unable to find the `file` program on this system. Ensure that the `file` program is installed on Linux runners and accessible.",
|
||||||
visibility: {
|
visibility: {
|
||||||
statusPage: true,
|
statusPage: true,
|
||||||
telemetry: true,
|
telemetry: true,
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -386,10 +386,10 @@ async function run() {
|
||||||
Language.go,
|
Language.go,
|
||||||
makeDiagnostic(
|
makeDiagnostic(
|
||||||
"go/workflow/file-program-unavailable",
|
"go/workflow/file-program-unavailable",
|
||||||
"The `file` program is required, but does not appear to be installed",
|
"The `file` program is required on Linux, but does not appear to be installed",
|
||||||
{
|
{
|
||||||
markdownMessage:
|
markdownMessage:
|
||||||
"CodeQL was unable to find the `file` program on this system. Ensure that the `file` program is installed on the runner and accessible.",
|
"CodeQL was unable to find the `file` program on this system. Ensure that the `file` program is installed on Linux runners and accessible.",
|
||||||
visibility: {
|
visibility: {
|
||||||
statusPage: true,
|
statusPage: true,
|
||||||
telemetry: true,
|
telemetry: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue