peritus / bumpversion

Version-bump your software with a single command
https://pypi.python.org/pypi/bumpversion
MIT License
1.5k stars 146 forks source link

Second file uses first file search string #195

Open TheBurnDoc opened 6 years ago

TheBurnDoc commented 6 years ago

If you have a config file like the following:

[bumpversion]
current_version = 0.6.5
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?:-rc(?P<rc>\d+))?(?:\+(?P<build>.+))?
serialize = 
    {major}.{minor}.{patch}-rc{rc}+{build}
    {major}.{minor}.{patch}-rc{rc}
    {major}.{minor}.{patch}+{build}
    {major}.{minor}.{patch}
commit = True
tag = True

[bumpversion:file:Chart.yaml]
search = version: {current_version}
replace = version: {new_version}

[bumpversion:file:../ingest-develop/requirements.yaml]
search = 
    - name: ingest-minimal
    version: {current_version}
replace = {new_version}

The search string from the second file is ignored and the one from the first one is used. Am I doing something wrong?