Skip to content

Commit a87191a

Browse files
authored
Renovate configuration: Enable go mod tidy (#4246)
Renovate configuration: Add a package rule making all go updates run `go mod tidy` after the dependency bump. This happens as a post update step. That is, the dependency is bumped in the local branch created by Renovate, then `go mod tidy` is invoked thus guaranteeing synchronization between `go.mod` and `go.sum` files.
1 parent 2a8a0f8 commit a87191a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

renovate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
"*"
1515
]
1616
},
17+
{
18+
"matchManagers": ["gomod"],
19+
"postUpdateOptions": ["gomodTidy"]
20+
},
1721
{
1822
"matchPackageNames": ["next", "react", "react-*", "@types/react", "@types/react-*", "eslint", "eslint-config-next"],
1923
"matchManagers": ["npm"],

0 commit comments

Comments
 (0)