Skip to content

Commit

Permalink
fix: handle empty exit_code File when fail_on_violation is set (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan authored Aug 29, 2024
1 parent b9068fc commit 83c8df2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lint/private/lint_aspect.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def patch_file(mnemonic, target, ctx):
def patch_and_output_files(*args):
patch, _ = patch_file(*args)
outputs, _ = output_files(*args)
human_outputs = [outputs.human.out, outputs.human.exit_code]
machine_outputs = [outputs.machine.out, outputs.machine.exit_code]
human_outputs = [f for f in [outputs.human.out, outputs.human.exit_code] if f]
machine_outputs = [f for f in [outputs.machine.out, outputs.machine.exit_code] if f]
return struct(
human = outputs.human,
machine = outputs.machine,
Expand Down

0 comments on commit 83c8df2

Please sign in to comment.