This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
transformDatasourceVersion #34555
Labels
priority-3-medium
Default priority, "should be done" but isn't prioritised ahead of others
Describe the proposed change(s).
Tell us more.
Related discussions:
There are times when a datasource's version string is similar but different to the string in the repo (
currentValue
). For example1.2.3
versus1-2-3
. We could use a versioning likeregex
to extract major/minor/patch from both of these, but if1-2-4
were available then the string1.2.3
in the repo would be replaced with1-2-4
instead of1.2.4
.We should rename and enhance
extractVersion
to also allow transformation:transformDatasourceVersion
version
capture groupextractVersion
string to be an array of length 1 fortransformDatasourceVersion
As an example, let's say the
currentValue
isminio_20250218162555.0.0_amd64.deb
while an equivalent raw datasource version isRELEASE.2025-02-18T16-25-55Z
. In this case it's intended thattransformDatasourceVersion
could be["^RELEASE\.(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})T(?<hour>\d{2})-(?<minute>\d{2})-(?<seconds>\d{2})Z$", "minio_{{year}}{{month}}{{day}}{{hour}}{{minute}}{{seconds}}.0.0_amd64.deb"]
.The text was updated successfully, but these errors were encountered: