1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-18 03:56:52 +02:00

feat: always log build output (#4787)

if the output is not empty, log it with info.

this prevents potentially hiding warnings et al.

on successful builds usually the output is empty anyway.

closes #4782

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2024-04-16 20:57:01 -03:00 committed by GitHub
parent d5fc94a81d
commit 5d37c9a5a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -380,7 +380,9 @@ func run(ctx *context.Context, command, env []string, dir string) error {
if err != nil {
return fmt.Errorf("%w: %s", err, string(out))
}
log.Debug(string(out))
if s := strings.TrimSpace(string(out)); s != "" {
log.Info(s)
}
return nil
}