mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
err early
This commit is contained in:
parent
cc46a0b347
commit
52a537c50e
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user