Closed Jonnymcc closed 4 years ago
Interesting, it looks like it detected the version update for both repo names earlier in the log output. But suspiciously only when the version was prefixed with v.
{
"depType": "github",
"depName": "github.com/some-org/terraform-aws-modules",
"depNameShort": "some-org/terraform-aws-modules",
"currentValue": "v0.0.7",
"datasource": "github-tags",
"lookupName": "some-org/terraform-aws-modules",
"depIndex": 1,
"updates": [
{
"fromVersion": "v0.0.7",
"toVersion": "20.40.0",
"newValue": "20.40.0",
"newMajor": 20,
"newMinor": 40,
"updateType": "major",
"isSingleVersion": true
}
],
"warnings": [],
"fixedVersion": "v0.0.7",
"sourceUrl": "https://github.com/some-org/terraform-aws-modules"
},
{
"depType": "github",
"depName": "github.com/some-org/aws-modules",
"depNameShort": "some-org/aws-modules",
"currentValue": "v0.0.1",
"datasource": "github-tags",
"lookupName": "some-org/aws-modules",
"depIndex": 2,
"updates": [
{
"fromVersion": "v0.0.1",
"toVersion": "0.0.7",
"newValue": "0.0.7",
"newMajor": 0,
"newMinor": 0,
"updateType": "minor",
"isSingleVersion": true
},
{
"fromVersion": "v0.0.1",
"toVersion": "20.40.0",
"newValue": "20.40.0",
"newMajor": 20,
"newMinor": 40,
"updateType": "major",
"isSingleVersion": true
}
],
"warnings": [],
"fixedVersion": "v0.0.1",
"sourceUrl": "https://github.com/some-org/aws-modules"
}
]
Can you create a minimal public repo to reproduce this? I suspect that the unsupported-version decision is being made in the manager, so possibly we can try to change that.
I think it's because of the current version r20.2.4
, which isn't valid with default versioning. Looks like you need a regex versioning for this.
We are using this config and it actually seems to be working despite what I was seeing in the logs.
{
"extends": [
"config:base"
],
"prConcurrentLimit": "5",
"additionalBranchPrefix": "{{baseDir}}-",
"packageRules": [
{
"datasources": ["github-tags"],
"versioning": "regex:^[vr]?(?<major>\\d+)(\\.(?<minor>\\d+))?(\\.(?<patch>\\d+))?$"
}
]
}
Which Renovate are you using?
WhiteSource Renovate App
Which platform are you using?
GitHub.com
Have you checked the logs? Don't forget to include them if relevant
What would you like to do?
Our modules repo, which is
aws-modules
renamed toterraform-aws-modules
, has releases created like r1.2.3. There are some other legacy tags formatted v0.0.7.I've been trying different forms of
but it always seems to say
"skipReason": "unsupported-version"
. What does unsupported-version mean, and what regex should I be using to support both formats of tags?