bumpVersions matchStrings not finding match that is found by other regex checkers
#39302
Unanswered
jordancarlin
asked this question in
Request Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How are you running Renovate?
A Mend.io-hosted app
Which platform you running Renovate on?
GitHub.com
Which version of Renovate are you using?
41.173.1
Please tell us more about your question or problem
I'm working on a repo where I need to bump a version number stored in a file whenever one of the dependencies in the repo is updated.
bumpVersionsseemed like a good way to do this, but I am running into an issue that I haven't been able to figure out. Based on the logs (included below), Renovate is correctly attempting to run thebumpVersionspart of the job and is finding the file that it needs to update, but it thinks there is no match for the version string. I have tested the regex pattern (with the extra backslash escapes removed) against the contents of the file with various other regex testers, and they all match the0.10correctly, so I'm not sure why Renovate is not finding that match. I may be misunderstanding something about how this configuration option is meant to work, but based on the documentation I believe this should be setup correctly. I've included the Renovate config file and the file containing the version string below. Any advice would be greatly appreciated.Relevant snippet of config:
{ "extends": ["config:recommended"], "packageRules": [ { "matchFileNames": [ "package.json", "package-lock.json", "requirements.txt" ], "bumpVersions": [ { "name": "Updating container version", "filePatterns": ["bin/.container-tag"], "bumpType": "minor", "matchStrings": ["(?<version>\\d+\\.\\d+)"] } ] } ], "logLevelRemap": [ { "matchMessage": "/bumpVersions/", "newLogLevel": "debug" } ], }Contents of
bin/.container-type:Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions