Skip to content

Commit

Permalink
fix: golang release version match
Browse files Browse the repository at this point in the history
Golang major releases follow `major.minor` only and patch releases follow
`major.minor.patch` format. This change allows renovate to update Golang
major/patch release versions.

This should also fix an old issue aquaproj#189.

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Feb 2, 2023
1 parent 8ac1f59 commit 95eafc0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions golang-go.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"packageRules": [
{
"matchPackageNames": "golang/go",
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>\\d+)?$"
}
],
"regexManagers": [
{
"datasourceTemplate": "github-tags",
Expand Down
6 changes: 6 additions & 0 deletions jsonnet/golang-go.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ local utils = import 'utils.libsonnet';
regexManagers: [
utils.golangGo + utils.argFileMatch,
],
packageRules: [
{
matchPackageNames: "golang/go",
versioning: "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>\\d+)?$"
}
]
}

0 comments on commit 95eafc0

Please sign in to comment.