fileMatch vs managerFilePatterns #36287
-
How are you running Renovate?Self-hosted Renovate If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.GitLab Please tell us more about your question or problemFinally got the time to implement some config validation for our renovate templates / presets and when running it I got a ton of fileMatch vs managerFilePatterns warnings: WARN: Config migration necessary
"oldConfig": {
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^.*\\.gitlab-ci\\.yml$"],
"matchStrings": [
"image:\\s+(?<depName>my\\.local\\.registry\\.net/[^:]+):(?<currentValue>[^\\s]+)"
],
"datasourceTemplate": "docker",
"depNameTemplate": "{{depName}}",
"versioningTemplate": "docker"
}
],
"packageRules": [
{
"matchManagers": ["custom.regex"],
"pinDigests": false,
"groupName": "gitlab-ci-yml"
}
]
},
"newConfig": {
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": ["/^.*\\.gitlab-ci\\.yml$/"],
"matchStrings": [
"image:\\s+(?<depName>my\\.local\\.registry\\.net/[^:]+):(?<currentValue>[^\\s]+)"
],
"datasourceTemplate": "docker",
"depNameTemplate": "{{depName}}",
"versioningTemplate": "docker"
}
],
"packageRules": [
{
"matchManagers": ["custom.regex"],
"pinDigests": false,
"groupName": "gitlab-ci-yml"
}
]
}In case you are wondering, the template above: include:
- component: $CI_SERVER_FQDN/path/to/my/repo/lint@v0.4.0
inputs:
image: my.local.registry.net/my/image:v3.70.4-k8s-linting # hereShould update the image in the input field in my include block which are not recognised by gitlabci or gitlabci-include managers. Anway, reading the docs and looking at the validation output I was under the impression that I could just replace Logs (if relevant)Logs |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
|
Beta Was this translation helpful? Give feedback.
managerFilePatternsaren't supported in Renovate v37. If you're using the config validator then you need to pin it to the older version of Renovate that you're using.