]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
fix(renovate): anchor managed version values to digit-start
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 11 Sep 2026 16:13:11 +0000 (18:13 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 11 Sep 2026 16:13:11 +0000 (18:13 +0200)
Require managed version values to start with a digit in both Dockerfile ARG and compose matchStrings. Kills the false-positive class where any *_version key with a non-version scalar (e.g. latest, stable) becomes a pypi lookup. Verified no-op on the current corpus: identical 26-capture set before/after.

renovate.json

index 7cb4163edc57fd6276f974c46045c4db3a753eab..e9263da3b3781ec658a4195ae84a31435f636fb5 100644 (file)
@@ -13,8 +13,8 @@
       "customType": "regex",
       "managerFilePatterns": ["**/Dockerfile*", "**/docker-compose*.yml"],
       "matchStrings": [
-        "ARG\\s+(?<depName>\\w+)_version=(?<currentValue>[^\\s]+)",
-        "\\s+(?<depName>\\w+)_version:\\s*(?<currentValue>[^\\s]+)"
+        "ARG\\s+(?<depName>\\w+)_version=(?<currentValue>\\d[^\\s]*)",
+        "\\s+(?<depName>\\w+)_version:\\s*(?<currentValue>\\d[^\\s]*)"
       ],
       "datasourceTemplate": "pypi",
       "depNameTemplate": "{{{replace '_' '-' depName}}}"