-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Version-less search & replace raise KeyError: 'new_version'
exception
#70
Labels
bug
Something isn't working
Comments
This issue is still present in
[tool.bumpversion]
current_version = "2.20.7"
allow_dirty = true
[[tool.bumpversion.files]]
filename = "./changelog.md"
search = "## [{current_version} (unreleased)]("
replace = "## [{new_version} (unreleased)]("
# Changelog
## [2.20.7 (unreleased)](https://github.com/kdeldycke/workflows/compare/v2.20.6...main)
- Test profanity.
|
+1 here. Any updates on this? |
I'll be on vacation until the end of the year, which will open up my time to focus on clearing up the backlog here. I appreciate your patience. |
coordt
added a commit
that referenced
this issue
Dec 18, 2023
- Added a test for the reported bug - Fixes #70
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
A simple search and replace in non-regex mode is ending up raising an error.
What I Did
As you can see in the verbose logs,
bump-my-version
is trying to locate the2\\.18\\.0
version regexp. Which is surprising to me as I was not expecting it to handle versions at all. Instead, I am expecting it to search for theprofanity
string and replace it with an empty string.Note that I am performing this from a project, whose
pyproject.toml
contains:But its content has no influence, as deleting it still produce the same error.
The text was updated successfully, but these errors were encountered: