How to use Renovate to track custom git tags? #36480
Unanswered
schmatzler-jona
asked this question in
Request Help
Replies: 1 comment
-
|
The versioning regex has to match the version from the file as well as the one coming from the git-tags Also I suggest to use named regex match groups |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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.
1.0.1-AC for BitBucket Cloud
Please tell us more about your question or problem
I am using Renovate to update versions in a
Makefile. Specifically, the version of OpenLDAP.I have a line:
VERSION := 2.5.19Versions of OpenLDAP are maintained as git tags in their public GitLab repo: https://git.openldap.org/openldap/openldap/-/tags, following the pattern:
OPENLDAP_REL_ENG_2_5_19,OPENLDAP_REL_ENG_2_6_10, etc.Manually changing my Makefile to:
VERSION := OPENLDAP_REL_ENG_2_5_18and using the followingrenovate.jsonconfig:{ "customManagers": [ { "customType": "regex", "managerFilePatterns": ["^Makefile$"], "matchStrings": [ "VERSION\\s*:=\\s*(?<currentValue>.*)" ], "datasourceTemplate": "git-tags", "versioningTemplate": "regex:^OPENLDAP_REL_ENG_(\\d+)_(\\d+)_(\\d+)$", "depNameTemplate": "https://git.openldap.org/openldap/openldap" } ] }Renovate successfully detects new tags and opens a PR when there is a newer version.
BUT: I'd like to keep the
Makefilesimple and only store the semver:VERSION := 2.5.18. Using that, I want Renovate to:Makefileto the semver, and not to the full tag name.So far I have not found a way to make this work. When the current value is
2.5.18, Renovate doesn’t seem to recognize that it corresponds toOPENLDAP_REL_ENG_2_5_18.Beta Was this translation helpful? Give feedback.
All reactions