v1.1.1 regression: replace
command fails on unapplicable [[tool.bumpversion.files]]
directive
#331
Labels
bug
Something isn't working
I just stumbled upon a regression when updating from bump-my-version 1.0.2 to 1.1.1.
Working case with 1.0.2
Here is a minimal example to reproduce the issue:
Now let's work on that minimal project:
Running the following command works as intended with v1.0.2:
And you can see there that the
(unreleased)
string was replaced with the current date.Regression with 1.1.1
Now let's update to the latest version of bump-my-version:
In the same conditions, with the same files, the command fails with the following error:
In this case you can see that the
(unreleased)
string was replaced with the current date, but bump-my-version stumble upon the[[tool.bumpversion.files]]
directive from thepyproject.toml
file, which is simply ignored in the case of version 1.0.2.To prove my point, removing the
[[tool.bumpversion.files]]
directive from thepyproject.toml
file makes the command work again:The text was updated successfully, but these errors were encountered: