Skip to content
Snippets Groups Projects
Unverified Commit 859b6d05 authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

fix: use semver-coerced versioning

I've noticed that truncated versioning upgrades is no longer working.

Looking at the logs in Renovate, the versions are reporting as invalid:

```json
 {
  "depName": "goreleaser/goreleaser",
  "currentValue": "2.3",
  "datasource": "github-releases",
  "versioning": "semver",
  "replaceString": " 2.3 # datasource=github-releases depName=goreleaser/goreleaser\n",
  "updates": [],
  "packageName": "goreleaser/goreleaser",
  "warnings": [],
  "skipReason": "invalid-value"
}
```

This is an attempt to fix this situation by switching to coerced semver,
which allows coersion of truncated version numbers
parent c67f71aa
No related branches found
No related tags found
No related merge requests found
Pipeline #24987370 failed
Loading
Loading
@@ -3,6 +3,7 @@
"description": "++++++++++ SEE https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/renovate-bot.md#truncated-versions FOR DETAILS ON THIS PRESET ++++++++++",
"packageRules": [
{
"description": "NOTE: Make sure all changes in this file are mirrored in `renovate-truncated-versions.json`",
"matchPackageNames": [
"gitlab-com/gl-infra/pmv",
"gitlab-com/gl-infra/common-ci-tasks",
Loading
Loading
@@ -12,14 +13,21 @@
"goreleaser/goreleaser",
"gitlab.com/gitlab-com/gl-infra/jsonnet-tool"
],
"extractVersion": "^v?(?<version>\\d+\\.\\d+\\.d+)"
"extractVersion": "^v?(?<version>\\d+\\.\\d+\\.d+)",
"versioning": "semver"
},
{
"description": "NOTE: Make sure all changes in this file are mirrored in `renovate-truncated-versions.json`",
"matchPackageNames": [
"gitlab-com/gl-infra/common-ci-tasks"
],
"matchManagers": ["gitlabci", "gitlabci-include", "pre-commit"],
"extractVersion": "^v?(?<version>\\d+\\.\\d+\\.d+)"
"matchManagers": [
"gitlabci",
"gitlabci-include",
"pre-commit"
],
"extractVersion": "^v?(?<version>\\d+\\.\\d+\\.d+)",
"versioning": "semver"
}
]
}
Loading
Loading
@@ -3,6 +3,7 @@
"description": "++++++++++ SEE https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/renovate-bot.md#truncated-versions FOR DETAILS ON THIS PRESET ++++++++++",
"packageRules": [
{
"description": "NOTE: Make sure all changes in this file are mirrored in `renovate-no-truncated-versions.json`",
"matchPackageNames": [
"gitlab-com/gl-infra/pmv",
"gitlab-com/gl-infra/common-ci-tasks",
Loading
Loading
@@ -12,14 +13,21 @@
"goreleaser/goreleaser",
"gitlab.com/gitlab-com/gl-infra/jsonnet-tool"
],
"extractVersion": "^v?(?<version>\\d+\\.\\d+)"
"extractVersion": "^v?(?<version>\\d+\\.\\d+)",
"versioning": "semver-coerced"
},
{
"description": "NOTE: Make sure all changes in this file are mirrored in `renovate-no-truncated-versions.json`",
"matchPackageNames": [
"gitlab-com/gl-infra/common-ci-tasks"
],
"matchManagers": ["gitlabci", "gitlabci-include", "pre-commit"],
"extractVersion": "^(?<version>v?\\d+\\.\\d+)"
"matchManagers": [
"gitlabci",
"gitlabci-include",
"pre-commit"
],
"extractVersion": "^(?<version>v?\\d+\\.\\d+)",
"versioning": "semver-coerced"
}
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment