From c57127eafbd73ad9390f7598b444095b5540b392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Veiga?= Date: Thu, 19 Sep 2024 13:17:47 +0200 Subject: [PATCH] feat(golangci-lint): don't fail fast --- tools/sggolangcilint/tools.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/sggolangcilint/tools.go b/tools/sggolangcilint/tools.go index b35013d3..c8d4db1b 100644 --- a/tools/sggolangcilint/tools.go +++ b/tools/sggolangcilint/tools.go @@ -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.