Closed
Description
Similar to #516 and with a similar workaround I can't update to the newest (0.31.0
) check-jsonschema
via pre-commit due to this regression in renovate.
Example renovate.json
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [
{
"description": "Update rust toolchain declarations of dtolnay/rust-toolchain",
"customType": "regex",
"fileMatch": [
"\\.github/(?:workflows|actions)/.+\\.ya?ml$",
"(^|/)action\\.ya?ml$"
],
"matchStrings": [
"# renovate: rust-toolchain\\s*toolchain\\:\\s*(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)"
],
"depNameTemplate": "rust",
"packageNameTemplate": "rust-lang/rust",
"datasourceTemplate": "github-tags"
}
]
}
Verification that its fixed with nonunicode
$ check-jsonschema --version
check-jsonschema, version 0.31.0
$ check-jsonschema --builtin-schema renovate renovate.json
Schema validation errors were encountered.
renovate.json::$.customManagers[0].matchStrings[0]: '# renovate: rust-toolchain\\s*toolchain\\:\\s*(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)' is not a 'regex'
$ check-jsonschema --builtin-schema renovate --regex-variant nonunicode renovate.json
ok -- validation done
Environment Details
- MacOS Sequoia
- Bash + Python3.12
(Though I don't think the environment matters in this case)