I'm combining the jq source with the include_regex option, but if the regex fails to match, it's not immediately obvious that version extraction fails, because nvchecker doesn't output anything.
source.toml (bad):
[__config__]
oldver = "old.json"
newver = "new.json"
[GPU-Z]
source = "jq"
filter = ".url" # this is broken on purpose, replace it with ".latest" to make it work
include_regex = "^[\\d.]+$"
url = "https://www.gpu-z.com/gpuz/version_v2"
And then testing it:
$ nvchecker -c source.toml --failures
$ echo $?
3
In the example above, nvchecker clearly fails, but no error output is given, like with regex sources, e.g.:
I'm combining the
jq
source with theinclude_regex
option, but if the regex fails to match, it's not immediately obvious that version extraction fails, because nvchecker doesn't output anything.source.toml (bad):
And then testing it:
In the example above, nvchecker clearly fails, but no error output is given, like with
regex
sources, e.g.:...
I apologize if there's already a way to do this, but I couldn't find it in the documentation.
Thanks.