From 4ee467f91254fdd5d9a1c328edd2e3fc5b541943 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 19 Mar 2026 12:06:03 +0100 Subject: [PATCH] tools: do not swallow error in `lint-nix` workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/62292 Reviewed-By: René Reviewed-By: Colin Ihrig Reviewed-By: Tierney Cyren --- .github/workflows/linters.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 3cb2689061d..4ac3f26dc66 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -154,7 +154,12 @@ jobs: run: | nix-shell -I nixpkgs=./tools/nix/pkgs.nix -p 'nixfmt-tree' --run ' treefmt --quiet --ci - ' || git --no-pager diff --exit-code + ' && EXIT_CODE="$?" || EXIT_CODE="$?" + if [ "$EXIT_CODE" != "0" ] + then + git --no-pager diff || true + exit "$EXIT_CODE" + fi lint-py: if: github.event.pull_request.draft == false