Support version compatibility patterns that consist of multiple compatibility groups #33026
Closed
mthalman
started this conversation in
Suggest an Idea
Replies: 3 comments 2 replies
-
Let's simplify the example so that |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm wondering if a more readable alternative would be to support |
Beta Was this translation helpful? Give feedback.
1 reply
-
Converted to issue: #33217 |
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
-
Tell us more.
The
versionCompatibility
setting only works for version patterns that consist of a single compatibility group. But there can be cases where multiple compatibility groups are needed. This is discussed in #33016.I'll illustrate this with an example of Docker tags.
This is a source file with a reference to a Docker tag:
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-amd64
The
dotnet-buildtools/prereqs
repo contains images from multiple Linux distros. So the tagging pattern is<distro>-<version>[-<variant>]-<architecture>
.Here's a sample of the tags in the repo:
Using the config below, it will cause Renovate to open a PR to update the source file to reference the
debian-12-helix-amd64
tag, which doesn't exist:The issue is that the version number in the tag is contained in between the two sections that identify compatibility. What is needed is a way to define a
versionCompatibility
pattern that defines multiple compatibility sections.Here's an example of how this could be defined:
A set number of
compatibilityX
identifiers could be supported which would be incorporated into the matching algorithm.Beta Was this translation helpful? Give feedback.
All reactions