mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
fix: always print before hooks output when in debug
This commit is contained in:
parent
eec13796a4
commit
d701179975
@ -25,8 +25,9 @@ func (Pipe) Run(ctx *context.Context) error {
|
|||||||
args := strings.Fields(step)
|
args := strings.Fields(step)
|
||||||
log.Infof("running %s", color.CyanString(step))
|
log.Infof("running %s", color.CyanString(step))
|
||||||
cmd := exec.Command(args[0], args[1:]...)
|
cmd := exec.Command(args[0], args[1:]...)
|
||||||
if out, err := cmd.CombinedOutput(); err != nil {
|
out, err := cmd.CombinedOutput()
|
||||||
log.Debug(string(out))
|
log.Debug(string(out))
|
||||||
|
if err != nil {
|
||||||
return fmt.Errorf("hook failed: %s\n%v", step, string(out))
|
return fmt.Errorf("hook failed: %s\n%v", step, string(out))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user