-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commit and tag messages use wrong serialization #14
Comments
@skipperTux I'm sorry it took me a month to notice your issue. I think there are two issues here:
I created a test in an attempt to reproduce your first issue. (didn't mean to put it in the master branch, but oh, well. Fridays, amirite?). Please check if my test represents your first issue. You might not know Python, but I hope the code is clear enough to get the gist. If the Once we have resolved this issue, we can move on to the next one. |
With regards to my first issue and your test: I do not know Python, however I can read more than write code. For me the code looks like you turned my config and my files into a test case. So yes, your test represent my first issue very specifically. However when I run the test the
|
I went back and figure out what is going on.
So you need to check your I created issue #20 to track that issue. Can you verify that was the issue for the first problem before we dig into the second? |
With regards to my Git history, the
I may re-test this later, if needed, I still have the |
Hi. I tested my old branch and .toml.config using the latest 0.5.1 version. The first issue "Did not find {version} in {file}" is gone/fixed 👍.
I assume the version cannot be found in the config, because the serialized version for the CSV is now used. However the config version already has been successfully found and parsed, see begin of the log.
The commit and tag messages are using the serialized version from the CSV, not the one defined in the default section of the config, that is |
Looking forward to see this in the 1.0 Release. Anything I can do to support you with this issue (e.g. testing, example repo)? |
I'll work on this next week. I need to write a failing test to isolate the issue. |
- Resets the context before committing and tagging - Fixes #14
(Thanks for your effort of keeping this project alive 👍!)
Description
Using old "c4urself / bump2version" Ini-configuration does not work out of the box, also converting to .toml has the same issues. It seems like the default templates are overwritten by local templates in the files section.
What I Did
Running
bumpversion --dry-run --verbose patch
with the below configuration gives the following error.When removing the last file section it works, however the commit message is
Would commit to Git with message 'Bump version: 3.1.1031.0 -> 3.1.1031.1'
, but it should beWould commit to Git with message 'Bump version: 3.1.0-rc+build.1031 -> 3.1.1-beta+build.1031'
, as this is from the default templates. The commit message uses the templates from the last files section"{major}.{minor}.{build}.{patch}"
, see below in configuration.The text was updated successfully, but these errors were encountered: