Skip to content

Commit

Permalink
golangci-lint: Capture results from stdout rather than stderr (#116)
Browse files Browse the repository at this point in the history
Without this, errors don't end up in the report file and are thus only
displayed on the first run.
  • Loading branch information
jelmer authored Jan 24, 2024
1 parent 6a32c67 commit 5760fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lint/golangci-lint.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def golangci_lint_action(ctx, executable, srcs, config, report, use_exit_code =
if use_exit_code:
command += " && touch {report}"
else:
command += " 2>{report} || true"
command += " >{report} || true"

ctx.actions.run_shell(
inputs = inputs,
Expand Down

0 comments on commit 5760fcb

Please sign in to comment.