Can't get digit only version to be recognized as major and minor #31111
Replies: 6 comments 3 replies
-
Maybe the datasource is sending versions of type that doesn't match the extracted version ie. |
Beta Was this translation helpful? Give feedback.
-
Any further suggestion? Look like a bug to me since, the versioning template won't create a current version from the current value. Or is there anything I'm doing wrong with the versioning template? |
Beta Was this translation helpful? Give feedback.
-
If I remove {
"deps": [
{
"depName": "azure-web-app-python",
"currentValue": "39",
"datasource": "custom.azure-web-app-python",
"versioning": "regex:(?<major>\\d)(?<minor>\\d+?)",
"replaceString": "# renovate: datasource=custom.azure-web-app-python depName=azure-web-app-python\n py39\n",
"updates": [],
"packageName": "azure-web-app-python",
"warnings": [],
"currentVersion": "39",
"fixedVersion": "39"
}
],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: packageName=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[a-z-0-9]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?\\s+py(?<currentValue>\\d+)\\s"
],
"versioningTemplate": "regex:(?<major>\\d)(?<minor>\\d+?)",
"packageFile": "somedir/tox.ini"
} |
Beta Was this translation helpful? Give feedback.
-
I've tried it in the debugger. The So the problem must be somewhere else. |
Beta Was this translation helpful? Give feedback.
-
a live repro can be found here: https://github.com/balihb/renovate-test/actions/runs/10796167691/job/29944527065#step:5:352 |
Beta Was this translation helpful? Give feedback.
-
a workaround is to use the [tox]
envlist =
py
[testenv]
# renovate: datasource=custom.azure-web-app-python depName=azure-web-app-python
base_python = python3.10 {
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"(^|/)tox\\.ini$"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: packageName=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[a-z-0-9]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?\\s+base_python = python(?<currentValue>[^\\s]+)\\s"
]
}
],
"description": "Update `base_python` Python versions in `tox.ini` files."
} |
Beta Was this translation helpful? Give feedback.
-
What would you like help with?
I would like help with my configuration
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
Gitlab
Please tell us more about your question or problem
I have a
tox.ini
file:The custom datasource works perfectly with other regex managers like Gitlab:
I tried to write a custom manager:
But all I'm getting is this:
Any idea?
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions