Skip to content

Commit 56618f4

Browse files
authored
Merge pull request #350 from sapcc/fix-go-pinning
renovate: fix pinning of Go minor version
2 parents 7e2f0d8 + bdd0208 commit 56618f4

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/renovate.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"packageRules": [
2424
{
2525
"matchPackageNames": [
26+
"go",
2627
"golang"
2728
],
2829
"allowedVersions": "1.24.x"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ packageRules:
348348
allowedVersions: 0.28.x
349349

350350
# Restrict updates for versions managed by go-makefile-maker.
351-
- matchPackageNames: [ golang ]
351+
- matchPackageNames: [ go, golang ]
352352
allowedVersions: $goVersion.x # only update within the same minor release
353353
- matchDepTypes: [ action ]
354354
enabled: false # see githubWorkflow config section below

internal/renovate/renovate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func RenderConfig(cfgRenovate core.RenovateConfig, scanResult golang.ScanResult,
9090
// NOTE: When changing this list, please also adjust the documentation for
9191
// default package rules in the README.
9292
cfg.PackageRules = append(cfg.PackageRules, core.PackageRule{
93-
MatchPackageNames: []string{"golang"},
93+
MatchPackageNames: []string{"go", "golang"},
9494
AllowedVersions: cfgRenovate.GoVersion + ".x",
9595
})
9696

0 commit comments

Comments
 (0)