Skip to content

Commit

Permalink
feat: update goreleaser api
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Oct 6, 2023
1 parent ab754a9 commit 061e15e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/hooks/goreleaser.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (gr *GoReleaser) Success(shConfig *hooks.SuccessHookConfig) error {
// set some fixed parameters for GoReleaser
ctx.Parallelism = gr.parallelism
log.Infof("build parallelism is set to %d", ctx.Parallelism)
ctx.Clean = true
ctx.RmDist = true
ctx.Config.Changelog.Skip = true // never generate changelog

ctx.Version = newVersion
Expand Down Expand Up @@ -94,15 +94,15 @@ func (gr *GoReleaser) Success(shConfig *hooks.SuccessHookConfig) error {
log.Info("skipping git pipe")
continue
}
err := skip.Maybe(pipe, logging.Log(pipe.String(), errhandler.Handle(pipe.Run)))(ctx)
err := skip.Maybe(pipe, logging.Log(pipe.String(), errhandler.Handle(pipe.Run), logging.DefaultInitialPadding))(ctx)
if err != nil {
return err
}
}
return nil
}

func (gr *GoReleaser) NoRelease(config *hooks.NoReleaseConfig) error {
func (gr *GoReleaser) NoRelease(_ *hooks.NoReleaseConfig) error {
return nil
}

Expand Down

0 comments on commit 061e15e

Please sign in to comment.