Skip to content

Commit

Permalink
Merge pull request #699 from rawlingsj/lint
Browse files Browse the repository at this point in the history
linter: when subpackages are linted use the subpackage name as the pa…
  • Loading branch information
Elizafox authored Sep 19, 2023
2 parents e844f4a + 7394c06 commit bbe0bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ func (b *Build) BuildPackage(ctx context.Context) error {
// TODO(Elizafox): getting the workspace dir path should be refactored.
path := filepath.Join(b.WorkspaceDir, "melange-out", sp.Name)
fsys := os.DirFS(path)
lctx := LinterContext{b.Configuration.Package.Name, &b.Configuration, &chk}
lctx := LinterContext{sp.Name, &b.Configuration, &chk}
err = lintPackageFs(lctx, fsys, linters)
if err != nil {
return fmt.Errorf("Error with package linter:\n%w", err)
Expand Down

0 comments on commit bbe0bc0

Please sign in to comment.