From 3506c8e0a4dfb081171386b66b6d49c6ab14fd2b Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 20 Sep 2023 00:00:33 -0700 Subject: [PATCH] build: do not run linters on skipped subpackages --- pkg/build/build.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pkg/build/build.go b/pkg/build/build.go index c7b594ea1..ed36cf982 100644 --- a/pkg/build/build.go +++ b/pkg/build/build.go @@ -1105,15 +1105,8 @@ func (b *Build) BuildPackage(ctx context.Context) error { if err := os.MkdirAll(filepath.Join(b.WorkspaceDir, "melange-out", sp.Name), 0o755); err != nil { return err } - } - - // Run subpackage linters - for _, sp := range b.Configuration.Subpackages { - if b.IsBuildLess() { - continue - } - b.Logger.Printf("running pipeline for subpackage %s", sp.Name) + b.Logger.Printf("running package linters for subpackage %s", sp.Name) chk := sp.Checks linters := chk.GetLinters()