Skip to content

Commit

Permalink
fix: goreleaser check (#1249)
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Nov 15, 2019
1 parent 0953c2f commit 65c9c12
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions main.go
Expand Up @@ -11,11 +11,11 @@ import (
"github.com/caarlos0/ctrlc"
"github.com/fatih/color"
"github.com/goreleaser/goreleaser/internal/middleware"
"github.com/goreleaser/goreleaser/internal/pipe/defaults"
"github.com/goreleaser/goreleaser/internal/pipeline"
"github.com/goreleaser/goreleaser/internal/static"
"github.com/goreleaser/goreleaser/pkg/config"
"github.com/goreleaser/goreleaser/pkg/context"
"github.com/goreleaser/goreleaser/pkg/defaults"
"gopkg.in/alecthomas/kingpin.v2"
)

Expand Down Expand Up @@ -128,12 +128,8 @@ func checkConfig(filename string) error {
}
var ctx = context.New(cfg)
return ctrlc.Default.Run(ctx, func() error {
for _, pipe := range defaults.Defaulters {
if err := middleware.ErrHandler(pipe.Default)(ctx); err != nil {
return err
}
}
return nil
log.Info(color.New(color.Bold).Sprint("checking config:"))
return defaults.Pipe{}.Run(ctx)
})
}

Expand Down

0 comments on commit 65c9c12

Please sign in to comment.