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:
parent
d5fc94a81d
commit
5d37c9a5a0
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user