Skip to content

Commit

Permalink
feat(golangci-lint): don't fail fast
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoeinride committed Sep 19, 2024
1 parent 53b1680 commit c57127e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/sggolangcilint/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,11 @@ func Run(ctx context.Context, args ...string) error {
}); err != nil {
return err
}
errs := make([]error, 0, len(commands))
for _, cmd := range commands {
if err := cmd.Wait(); err != nil {
return err
}
errs = append(errs, cmd.Wait())
}
return nil
return errors.Join(errs...)
}

// Run GolangCI-Lint --fix in every Go module from the root of the current git repo.
Expand Down

0 comments on commit c57127e

Please sign in to comment.