Rearrange diagnostic error message

The context should come in the middle and the call to action should come
last.
This commit is contained in:
Owen Mansel-Chan
2023-03-08 17:09:52 +00:00
parent 63d3b3ff2a
commit 9fc119cc55

View File

@@ -151,7 +151,7 @@ func EmitCannotFindPackages(pkgPaths []string) {
emitDiagnostic(
"go/autobuilder/package-not-found",
fmt.Sprintf("%d package%s could not be found", numPkgPaths, ending),
"The following packages could not be found. Check that the paths are correct and make sure any private packages can be accessed. If any of the packages are present in the repository then you may need a [custom build command](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-the-codeql-workflow-for-compiled-languages).\n\n"+secondLine,
"The following packages could not be found.\n\n"+secondLine+"\n\nCheck that the paths are correct and make sure any private packages can be accessed. If any of the packages are present in the repository then you may need a [custom build command](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-the-codeql-workflow-for-compiled-languages).",
severityError,
fullVisibility,
noLocation,