Skip to content

Commit c2ab489

Browse files
committed
fix(renovate): disable major updates for indirect Go deps
Go major version updates change module import paths (e.g. v1 → v2). Indirect dependencies cannot be updated independently since the parent module (e.g. sops) still imports the old paths. go mod tidy removes the unused new entries during build, failing the verify step. Also adds gomodUpdateImportPaths so direct major updates get their source import paths updated automatically.
1 parent 7b1c884 commit c2ab489

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

renovate.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
"groupName": "go-deps",
1010
"automerge": true
1111
},
12+
{
13+
"matchManagers": ["gomod"],
14+
"matchDepTypes": ["indirect"],
15+
"matchUpdateTypes": ["major"],
16+
"enabled": false
17+
},
1218
{
1319
"matchManagers": ["npm"],
1420
"groupName": "npm-deps",
@@ -25,6 +31,6 @@
2531
"automerge": true
2632
}
2733
],
28-
"postUpdateOptions": ["gomodTidy"],
34+
"postUpdateOptions": ["gomodTidy", "gomodUpdateImportPaths"],
2935
"pinDigests": true
3036
}

0 commit comments

Comments
 (0)