You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug happens when the labels of the parsing do not match the labels of serialization, and the value is required.
In this example, when the pre_label is dev or rc and the pre_n value is greater than 0, it evaluates the labels_for_format against the version.required_components().
The required labels are {'patch', 'pre_label', 'minor', 'pre_n'}, while the correct serialization labels are {'minor', 'distance_to_latest_tag', 'patch', 'pre_label', 'major'}. The pre_n and the distance_to_latest_tag are equivalent but not currently recognized. When this happens, it defaults to the "{major}.{minor}.{patch}" format.
My
parse
,serialize
and[tool.bumpversion.parts.pre_label]
are pretty much a paste-in from the Automate the pre-release numbering section of the docs:Configuration
My
show-bump
showspre_label
bumping up torc
as expected:Pre-bump State
After Bump
Instead of
bump-my-version bump pre_label
giving me0.1.2-rc2
, I getrc2
inserted in front ofdev2
The docs don't show any changes to the
parse
value. Am I missing something?Originally posted by @dougscc in #271
The text was updated successfully, but these errors were encountered: