Compare commits

...

3 Commits

Author SHA1 Message Date
CrazyMax 379bf63a97 Merge pull request #1620 from crazy-max/buildx-error-message
use the shared Buildx error summary helper
2026-09-14 14:34:29 +02:00
CrazyMax 9877975c9e chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-09-11 13:55:10 +02:00
CrazyMax 7ed0556ffa use the shared Buildx error summary helper
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-09-11 13:55:09 +02:00
3 changed files with 18 additions and 18 deletions
Generated Vendored
+11 -11
View File
File diff suppressed because one or more lines are too long
Generated Vendored
+3 -3
View File
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -110,11 +110,11 @@ actionsToolkit.run(
}).then(res => {
if (res.exitCode != 0) {
if (inputs.call && inputs.call === 'check' && res.stdout.length > 0) {
// checks warnings are printed to stdout: https://github.com/docker/buildx/pull/2647
// take the first line with the message summaryzing the warnings
// Check warnings are printed to stdout: https://github.com/docker/buildx/pull/2647
// Use the first line as the warning summary.
err = new Error(res.stdout.split('\n')[0]?.trim());
} else if (res.stderr.length > 0) {
err = new Error(`buildx failed with: ${res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error'}`);
} else {
err = new Error(`buildx failed with: ${Buildx.getErrorMessage(res.stderr)}`);
}
}
});