From 2a5758bcf5db22f1c88eb83c642a0ec64b9a5063 Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" Date: Tue, 21 Jan 2025 10:11:19 -0300 Subject: [PATCH] ci: Don't swallow gitlint warning Make sure it's reported somewhere readily accessible. Part-of: --- meson.build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 1f9ce6557f..0c1bce46a1 100644 --- a/meson.build +++ b/meson.build @@ -35,9 +35,12 @@ endif gitlint_req = '>= 0.18' gitlint = find_program('gitlint', version: gitlint_req, required: false) if gitlint.found() - run_command(gitlint, 'install-hook', check: false) + gitlint_status = run_command(gitlint, 'install-hook', check: false) + if gitlint_status.returncode() != 0 + warning(gitlint_status.stderr().strip()) + endif else - message('gitlint not found or too old, please install it with your package manager or `python3 -m pip install gitlint` to enable the commit message hook') + warning('gitlint not found or too old, please install it with your package manager or `python3 -m pip install gitlint` to enable the commit message hook') endif pre_commit_req = '>= 3.6.0'