Skip to content

Commit

Permalink
renovate: upgrade the go.mod module directive
Browse files Browse the repository at this point in the history
Also run go mod vendor after a go.mod directive update.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
  • Loading branch information
mtardy committed Jul 20, 2023
1 parent addba71 commit 2ac15c7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"^/tmp/install-buildx$",
"^make codegen$",
"^make generate$",
"^install/kubernetes/test.sh$"
"^install/kubernetes/test.sh$",
"^go mod vendor$"
],
// repository configuration
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
Expand Down Expand Up @@ -221,12 +222,25 @@
"Dockerfile"
],
},
// Upgrade the Go module directive, see:
// https://docs.renovatebot.com/modules/versioning/#go-modules-directive-versioning
// depName is 'go' so it will be group with the 'Go' groupName
{
"matchDatasources": ["golang-version"],
"rangeStrategy": "bump",
},
{
"groupName": "Go",
"matchDepNames": [
"go",
"docker.io/library/golang"
],
// postUpgradeTasks is only for when the Go module directives are bumped
"postUpgradeTasks": {
"commands": ["go mod vendor"],
"fileFilters": ["**/**"],
"executionMode": "branch"
},
},
{
// Group golangci-lint updates to overrule grouping of version updates in the GHA files.
Expand Down

0 comments on commit 2ac15c7

Please sign in to comment.