Repository navigation
Expand file tree
/
Copy pathrenovate.json
More file actions
87 lines (87 loc) · 4.14 KB
/
Copy pathrenovate.json
File metadata and controls
87 lines (87 loc) · 4.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":semanticCommitTypeAll(chore)",
":semanticCommitScopeDisabled",
"docker:disable"
],
"minimumReleaseAge": "7 days",
"schedule": ["before 4am on monday"],
"groupName": "all dependencies",
"groupSlug": "all",
"postUpdateOptions": ["gomodTidyAll"],
"ignoreDeps": ["github.com/netapp/harvest/v2"],
"lockFileMaintenance": {
"enabled": false
},
"customManagers": [
{
"customType": "regex",
"description": "GOLANGCI_LINT_VERSION in .harvest.env pins the linter that `make lint` runs in every module",
"managerFilePatterns": ["/^\\.harvest\\.env$/"],
"matchStrings": ["GOLANGCI_LINT_VERSION=(?<currentValue>v\\S+)"],
"depNameTemplate": "github.com/golangci/golangci-lint/v2",
"datasourceTemplate": "go"
},
{
"customType": "regex",
"description": "GO_VERSION in .harvest.env is the Go toolchain for make, CI, and Docker builds. The Dockerfiles repeat it as the fallback for builds that don't pass --build-arg GO_VERSION, so all three must move together",
"managerFilePatterns": [
"/^\\.harvest\\.env$/",
"/^container/onePollerPerContainer/Dockerfile$/",
"/^mcp/Dockerfile$/",
"/^\\.oss-scanner/Dockerfile$/"
],
"matchStrings": [
"(?:^|\\n)GO_VERSION=(?<currentValue>\\d+\\.\\d+\\.\\d+)",
"golang:\\$\\{GO_VERSION:-(?<currentValue>\\d+\\.\\d+\\.\\d+)\\}"
],
"depNameTemplate": "go",
"datasourceTemplate": "golang-version"
}
],
"packageRules": [
{
"description": "TestFormattedPromQL asserts every dashboard expression matches this parser's pretty-printer, so a bump reformats ~1800 expressions at once. Keep it out of the grouped PR so the reformat is reviewable on its own.",
"matchPackageNames": [
"github.com/prometheus/prometheus"
],
"groupName": "prometheus promql parser",
"groupSlug": "promql-parser"
},
{
"description": "A golangci-lint release can add linters, which lands as new findings across the whole codebase rather than as a dependency problem. Keep it out of the grouped PR and off the weekly schedule: it waits on the dependency dashboard until someone asks for it.",
"matchPackageNames": [
"github.com/golangci/golangci-lint/v2"
],
"groupName": "golangci-lint",
"groupSlug": "golangci-lint",
"dependencyDashboardApproval": true
},
{
"description": "Keep Go toolchain bumps out of the grouped PR so a CI failure from a new Go release is attributable to it alone. Every Go release, minor or patch, skips the release-age wait and the weekly schedule and is proposed as soon as it ships, since point releases often carry security fixes. Scoped to the regex manager so the go directive in go.mod files keeps its existing handling",
"matchManagers": ["custom.regex"],
"matchPackageNames": ["go"],
"groupName": "go toolchain",
"groupSlug": "go-toolchain",
"minimumReleaseAge": "0 days",
"schedule": ["at any time"]
},
{
"description": "integration/ and mcp/ are separate modules that consume the root module from disk (replace github.com/netapp/harvest/v2 => ../). gomodTidyAll re-tidies them after a root bump; this rule additionally lets their own indirect requirements be updated, which gomod disables by default",
"matchManagers": ["gomod"],
"matchFileNames": ["integration/go.mod", "mcp/go.mod"],
"matchDepTypes": ["indirect"],
"enabled": true
},
{
"description": "Update integration/ and mcp/ in their own branch, never alongside the root go.mod. Renovate runs the root's artifact step first, and gomodTidyAll makes it re-tidy the nested modules before their updated go.mod reaches disk. That stale go.mod then overwrites the updated one in the commit, while go.sum keeps the new versions, so tidy-check fails (PR 4510)",
"matchManagers": ["gomod"],
"matchFileNames": ["integration/go.mod", "mcp/go.mod"],
"groupName": "nested go modules",
"groupSlug": "nested-go-modules"
}
],
"separateMajorMinor": false
}