diff --git a/renovate-config.json b/renovate-config.json index 44d321b..24fd36e 100644 --- a/renovate-config.json +++ b/renovate-config.json @@ -18,6 +18,10 @@ "lockFileMaintenance": { "dependencyDashboardApproval": false }, + "gomod": { + "description": "Update and tidy Go modules under examples, test and tests directories too, which config:recommended ignores. Such a module often replaces the repository's root module with a relative path, so when an update moves a requirement in the root go.mod, the nested go.mod goes stale and go mod tidy and golangci-lint fail on it. Vendored modules, node_modules and Go testdata fixtures stay ignored.", + "ignorePaths": ["**/node_modules/**", "**/vendor/**", "**/testdata/**"] + }, "packageRules": [ { "description": "Group every Go module minor update in a repository into one pull request, so the dashboard asks for one approval per repository instead of one per module.", @@ -78,9 +82,9 @@ "dependencyDashboardApproval": false }, { - "description": "Run go mod tidy after a Go module update, so go.sum gains the hashes the new versions need and loses the ones nothing uses.", + "description": "Run go mod tidy after a Go module update, so go.sum gains the hashes the new versions need and loses the ones nothing uses. It runs in every go.mod Renovate updates, and then in every go.mod that replaces that module with a local path, such as an example built against the root. Renovate does not otherwise touch a nested module whose own go.mod lists the dependency only as indirect, or not at all, so a root-only update would leave it stale.", "matchManagers": ["gomod"], - "postUpdateOptions": ["gomodTidy"] + "postUpdateOptions": ["gomodTidyAll"] }, { "description": "Move the Go toolchain as one pull request per repository, opened without waiting for approval: the go.mod toolchain line, golang build images, the Go that setup-go installs, golangci-lint and chainsaw. golangci-lint refuses a module whose toolchain is newer than the Go it was built with, and older chainsaw releases do not build on a newer Go, so moving any one of them alone fails CI. The go.mod go line is not in this group, and Renovate never proposes it: it sets runtime defaults and, in a library, the minimum Go of every importer, so it moves in a change of its own or when go get raises it for a dependency.",