From 341caf8aa7086b836b31b15409a6b10ab6069402 Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 27 Jul 2026 11:54:21 +0200 Subject: [PATCH] chore(ci): fix renovate custom manager regex (#38656) Make this regex compatible with https://github.com/uhop/node-re2 used by renovate and which does not support lookahead. `renovate-config-validator` which I had used earlier fails to run `re2` on node 26 because of missing prebuilt binary and falls back to JS regex which does support lookahead, giving incorrect validation results. Upstream bug report: https://github.com/renovatebot/renovate/discussions/44873 Fixes: https://github.com/go-gitea/gitea/issues/38648 --- renovate.json5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renovate.json5 b/renovate.json5 index dad4e878b3..c43d6702eb 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -22,7 +22,7 @@ "customType": "regex", "managerFilePatterns": ["/(^|/)\\.(gitea|github)/(workflows|actions)/.+\\.ya?ml$/"], "matchStrings": [ - "[A-Za-z0-9_]+_VERSION[ \\t]*:[ \\t]*[\"']?(?[^\\s\"']+)[\"']?[ \\t]*# renovate: datasource=(?[a-zA-Z0-9-._]+?) depName=(?[^\\s]+?)(?: (?:lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[^\\s]+?))?(?: extractVersion=(?[^\\s]+?))?(?: registryUrl=(?[^\\s]+?))?(?=\\s|$)", + "[A-Za-z0-9_]+_VERSION[ \\t]*:[ \\t]*[\"']?(?[^\\s\"']+)[\"']?[ \\t]*# renovate: datasource=(?[a-zA-Z0-9-._]+) depName=(?\\S+)(?: (?:lookupName|packageName)=(?\\S+))?(?: versioning=(?\\S+))?(?: extractVersion=(?\\S+))?(?: registryUrl=(?\\S+))?", ], }, {