From 5760fcb651dbee5f5cfe3cabdda98c6530c2c538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Wed, 24 Jan 2024 16:04:25 +0000 Subject: [PATCH] golangci-lint: Capture results from stdout rather than stderr (#116) Without this, errors don't end up in the report file and are thus only displayed on the first run. --- lint/golangci-lint.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lint/golangci-lint.bzl b/lint/golangci-lint.bzl index c292a4ed..3db1d6ec 100644 --- a/lint/golangci-lint.bzl +++ b/lint/golangci-lint.bzl @@ -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,