Skip to content

Commit

Permalink
Merge pull request #701 from chainguard-dev/fix/linter-skipped-subpkg
Browse files Browse the repository at this point in the history
build: do not run linters on skipped subpackages
  • Loading branch information
Elizafox authored Sep 20, 2023
2 parents 1f35cc6 + 3506c8e commit b5dde8a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pkg/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b5dde8a

Please sign in to comment.