A new major version of a Go module is a separate module path. For an indirect dependency nothing imports it, so Renovate only adds an unused requirement, as in #24 (go.yaml.in/yaml/v3 to v4). Minor and patch updates of indirect modules stay enabled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
56 lines
1.2 KiB
JSON
56 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
"extends": [
|
|
"config:recommended"
|
|
],
|
|
"dependencyDashboard": true,
|
|
"postUpdateOptions": [
|
|
"gomodTidy"
|
|
],
|
|
"packageRules": [
|
|
{
|
|
"description": "Keep GitHub Actions in the Gitea release workflow up to date",
|
|
"matchManagers": [
|
|
"github-actions"
|
|
],
|
|
"enabled": true
|
|
},
|
|
{
|
|
"description": "Include indirect Go modules in dependency updates",
|
|
"matchManagers": [
|
|
"gomod"
|
|
],
|
|
"matchDepTypes": [
|
|
"indirect"
|
|
],
|
|
"enabled": true
|
|
},
|
|
{
|
|
"description": "Skip major updates of indirect Go modules: a new major version is a separate module path that no dependency imports, so the update only adds an unused requirement",
|
|
"matchManagers": [
|
|
"gomod"
|
|
],
|
|
"matchDepTypes": [
|
|
"indirect"
|
|
],
|
|
"matchUpdateTypes": [
|
|
"major"
|
|
],
|
|
"enabled": false
|
|
},
|
|
{
|
|
"description": "Update the Go version declared in go.mod",
|
|
"matchManagers": [
|
|
"gomod"
|
|
],
|
|
"matchDepNames": [
|
|
"go"
|
|
],
|
|
"matchDepTypes": [
|
|
"golang"
|
|
],
|
|
"rangeStrategy": "bump"
|
|
}
|
|
]
|
|
}
|