From 3d3954511e408cedfd79949f306b5af2ec26526e Mon Sep 17 00:00:00 2001 From: Hari Rana Date: Sun, 15 Oct 2023 20:32:35 -0400 Subject: [PATCH] build: Add boolean check kwarg to run_command This addresses the following warning: WARNING: You should add the boolean check kwarg to the run_command call. It currently defaults to false, but it will default to true in future releases of meson. See also: https://github.com/mesonbuild/meson/issues/9300 --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 0f6442b2..048364bf 100644 --- a/meson.build +++ b/meson.build @@ -18,7 +18,10 @@ dependency('gweather4', version: '>= 3.90.0') # Profiles if get_option('profile') == 'development' profile = 'Devel' - vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip() + vcs_tag = run_command( + ['git', 'rev-parse', '--short', 'HEAD'], + check: true + ).stdout().strip() if vcs_tag == '' version_suffix = '-devel' else -- GitLab