Regex Manager - Handling when version doesn't exactly match github-tags format #22187
Replies: 1 comment
-
I've transferred this into the main repo, as I don't think we can achieve this with any config. The main issue is that GitHub Tags is not a true "registry", and they can be like "1.0.0", "v1.2.0" or "v1.3.0 - Ukelele", "foo", etc. Naturally we normally focus on the first two versions and filter the rest. One possible thing we could do is "massage" the results so that it's "1.0.0" and "1.2.0", but unfortunately this would break some use cases that need to have an exact match on the tag. I can think of two ways to address it:
In your case, the best/quickest solution would be if you are able to change |
Beta Was this translation helpful? Give feedback.
-
Which Renovate are you using?
Renovate Open Source CLI
Which platform are you using?
GitHub Enterprise
Have you checked the logs? Don't forget to include them if relevant
renovatelog.txt
What would you like to do?
I'm looking to see if it is possible to use a regex manager, alongside using a regex versioning template, from testing I don't appear to be able to do what I want to do.
My configuration is:
For example, I have a filename.spec file, which contains:
Which I have as a repository in my organisation that contains tags in github - However, they're formatted differently to this, they're formatted like so:
As a result, I'm attempting to get renovate to identify the
1.0.0
version in the spec file, and match that to the github tags, replacing1.0.0
with1.1.0
for example.Based on the logs I can see that is is successfully identifying that I have an update from version
1.0.0
to version1.1.0
, but when it comes to actually doing the replacement, it appears that it uses the full github tag name, meaning replacement ultimately fails.I'm aware that what I'm looking to do might not even actually be possible in the current form of renovate.
Beta Was this translation helpful? Give feedback.
All reactions