Skip to content

Commit 018181f

Browse files
koki-developclaude
andcommitted
chore: use custom regex manager for go.mod.tmpl Renovate updates
The gomod manager's artifact update runs `go get -modfile`, which requires a .mod extension and fails on .tmpl files. Switch to a custom regex manager that does text-only replacement instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent aaf706b commit 018181f

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

renovate.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@
44
"github>koki-develop/renovate-config",
55
"customManagers:dockerfileVersions"
66
],
7-
"gomod": {
8-
"managerFilePatterns": ["internal/sandbox/defaults/go/go.mod.tmpl"]
9-
},
7+
"customManagers": [
8+
{
9+
"customType": "regex",
10+
"managerFilePatterns": ["internal/sandbox/defaults/go/go.mod.tmpl"],
11+
"matchStrings": ["go (?<currentValue>\\S+)\\n"],
12+
"depNameTemplate": "go",
13+
"datasourceTemplate": "golang-version",
14+
"versioningTemplate": "semver"
15+
}
16+
],
1017
"packageRules": [
1118
{
1219
"matchFileNames": ["Dockerfile"],

0 commit comments

Comments
 (0)