semver-coerced doesn't update a prerelease version to a stable version #28150
-
What would you like help with?I think I found a bug How are you running Renovate?Mend Renovate hosted app on github.com If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.No response Please tell us more about your question or problemI expect Renovate should update I created a GitHub Repository to reproduce the issue. https://github.com/suzuki-shunsuke/test-renovate-prerelease customManagers: [
{
customType: "regex",
datasourceTemplate: "github-releases",
depNameTemplate: "aquaproj/aqua",
fileMatch: [
"version",
],
matchStrings: [
"(?<currentValue>.+)",
],
},
], The current version is v2.25.1-5. https://github.com/suzuki-shunsuke/test-renovate-prerelease/blob/d313f579baa027455f21cce17290f881f486fff7/version#L1 The latest version is v2.25.1. https://github.com/aquaproj/aqua/releases/tag/v2.25.1 {
"baseBranch": "main"
"config": {
"regex": [
{
"datasourceTemplate": "github-releases",
"depNameTemplate": "aquaproj/aqua",
"deps": [
{
"currentValue": "v2.25.1-5",
"currentVersion": "v2.25.1-5",
"datasource": "github-releases",
"depName": "aquaproj/aqua",
"fixedVersion": "v2.25.1-5",
"packageName": "aquaproj/aqua",
"registryUrl": "https://github.com",
"replaceString": "v2.25.1-5",
"sourceUrl": "https://github.com/aquaproj/aqua",
"versioning": "semver-coerced",
"warnings": [],
"updates": []
}
],
"matchStrings": [
"(?<currentValue>.+)"
],
"packageFile": "version"
}
]
}
} Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
https://docs.renovatebot.com/modules/versioning/#coerced-semantic-versioning-versioning |
Beta Was this translation helpful? Give feedback.
-
BTW, the default value of https://docs.renovatebot.com/configuration-options/#versioningtemplate |
Beta Was this translation helpful? Give feedback.
I changed
versioningTemplate
tosemver
, then it worked as expected.