1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

err early

This commit is contained in:
Carlos Alexandro Becker 2017-03-23 18:32:27 -03:00
parent cc46a0b347
commit 52a537c50e
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -47,7 +47,9 @@ func (Pipe) Run(ctx *context.Context) error {
})
}
}
err := g.Wait()
if err := g.Wait(); err != nil {
return err
}
if ctx.Config.Build.Hooks.Post != "" {
log.Println("Running post-build hook", ctx.Config.Build.Hooks.Post)
cmd := strings.Fields(ctx.Config.Build.Hooks.Post)
@ -55,7 +57,7 @@ func (Pipe) Run(ctx *context.Context) error {
return err
}
}
return err
return nil
}
func build(name, goos, goarch string, ctx *context.Context) error {