-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The check
argument of run_command
should be True
by default
#9300
Comments
I think it's like that for historical reasons, changing this would not be backward compatible. But I agree it's not ideal, we should warn when check argument is not set for a few releases, then do the flip eventually. |
I can understand that.
Should I write the PR? |
I agree that this change would be nice and yes, if you would write the PR that would be great. ;) |
Fixed via linked PR. |
FWIW, I checked GStreamer and they have plenty of places where it assumes that check is false by default. I still agree the default should be true, but we'll probably need a long deprecation period because that seems a common thing. |
Sure, baby steps for now though. :D |
Please, please, always include the source line in messages like this. In large projects, hunting for the right line to fix is a pita. |
meson-0.59.4-1.fc35.noarch says: 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: mesonbuild/meson#9300
You're entirely correct and I apologize for not thinking of this during the review process. It should be easy to fix -- the mlog functions take an optional |
meson-0.59.4-1.fc35.noarch says: 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: mesonbuild/meson#9300
You're right, sorry I forget. |
Yeah, it was a real slip up of you to accept this crap. /s |
It was a good PR :p it just could have used one specific touch-up. |
OK, OK, I'm sorry that I mentioned it. The change is good. |
No, No, it's good that you mentioned it. Good error messages are important. |
meson-0.59.4-1.fc35.noarch says: 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: mesonbuild/meson#9300
meson-0.59.4-1.fc35.noarch says: 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: mesonbuild/meson#9300
meson-0.59.4-1.fc35.noarch says: 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: mesonbuild/meson#9300
meson-0.59.4-1.fc35.noarch says: 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: mesonbuild/meson#9300
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: mesonbuild/meson#9300
This is required since Meson 0.61.0, and causes a warning to be emitted otherwise: mesonbuild/meson@2c079d8 mesonbuild/meson#9300 This exposed a bunch of places where we had broken run_command() calls, unnecessary run_command() calls, and places where check: true should be used. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1507>
The include tests are not critical, hence there is no need to halt the build if, for some reason, `find` fails. See mesonbuild/meson#9300
Warning from meson: 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: mesonbuild/meson#9300 All of the run_command() calls currently use need to succeed for the build to work properly.
As per: 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: mesonbuild/meson#9300
As per: 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: mesonbuild/meson#9300
This explicitly checks the command before assigning to the `version` variable. This also addresses the following warning during building: ``` 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: mesonbuild/meson#9300 ```
Fixes 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: mesonbuild/meson#9300
Fixes 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: mesonbuild/meson#9300
Fixes 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: mesonbuild/meson#9300
``` Program test-cc-supports-hidden-visibility.py found: YES (/usr/bin/python3 /path/to/libffi/test-cc-supports-hidden-visibility.py) 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: mesonbuild/meson#9300 ``` Part-of: <https://gitlab.freedesktop.org/gstreamer/meson-ports/libffi/-/merge_requests/16>
This fixes warnings: Program xsltproc found: YES (/usr/bin/xsltproc) 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: mesonbuild/meson#9300 Signed-off-by: Petr Vorel <pvorel@suse.cz>
This fixes warnings: Program xsltproc found: YES (/usr/bin/xsltproc) 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: mesonbuild/meson#9300 Signed-off-by: Petr Vorel <pvorel@suse.cz>
This fixes warnings: Program xsltproc found: YES (/usr/bin/xsltproc) 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: mesonbuild/meson#9300 Signed-off-by: Petr Vorel <pvorel@suse.cz>
The `run_command()` invocations in the iniparser meson.build lacked the `check` parameter: ``` iniparser| WARNING: You should add the boolean check kwarg to the run_command call. iniparser| It currently defaults to false, iniparser| but it will default to true in future releases of meson. iniparser| See also: mesonbuild/meson#9300 ``` Add `check` and set it to true to make sure the build configuration only succeeds if these commands also succeed. Fixes: 1e04f44 ("use iniparser dependency for config file parsing") Change-Id: I97841398fc899e876b97e4e28e18cd8dd3b13222 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Set the "check" parameter in run_command() calls, instead of relying on the default value, which might get changed at some point in the fuiture. This silences the folloeing Meson 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: mesonbuild/meson#9300
Set the "check" parameter in run_command() calls, instead of relying on the default value, which might get changed at some point in the fuiture. This silences the following Meson 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: mesonbuild/meson#9300
Set the "check" parameter in run_command() calls, instead of relying on the default value, which might get changed at some point in the future. This silences the following Meson 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: mesonbuild/meson#9300
Set the "check" parameter in run_command() calls, instead of relying on the default value, which might get changed at some point in the future. This silences the following Meson 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: mesonbuild/meson#9300
Set the "check" parameter in run_command() calls, instead of relying on the default value, which might get changed at some point in the future. This silences the following Meson 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: mesonbuild/meson#9300 (cherry picked from commit f486b18)
meson complains: 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: mesonbuild/meson#9300
meson complains: 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: mesonbuild/meson#9300
Meson warns about this when the "check" keyword is absent, 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: mesonbuild/meson#9300 and the command should indeed succeed, so we now pass "check: true" to run_command().
To make meson happy and get rid of: 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: mesonbuild/meson#9300
run_command() wants a check kwarg now: 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: mesonbuild/meson#9300 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
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: mesonbuild/meson#9300 ```
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: mesonbuild/meson#9300 ```
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: mesonbuild/meson#9300 ```
The
run_command
argument takes acheck
bool-argument. Ifcheck: true
, is given and the command fails, meson will error out.May I ask, who thought that it was a good idea to let
check
default tofalse
? Ignoring errors by default goes against everything I learned.So essentially, I want something like this, (plus documentation updates)
The text was updated successfully, but these errors were encountered: