Skip to content

Strange effect when using pre-releases #243

Answered by coordt
goto40 asked this question in Q&A
Discussion options

You must be logged in to vote

This is the expected behavior.

Here is some background

  1. There is a difference between the values of all the parts and how they are serialized into a version. In the example in the docs, version 0.1.0 could also be serialized as 0.1.0-final0. The pre_l value final is optional as is the pre_n value of 0, and therefore means they doesn't have to be in the serialized version.
  2. There is always an optional value. The first item in a list of values is the optional value, unless you indicate otherwise. In your alteration for pre_l and setting it to ["dev"], you have made dev optional. You have also made it the only allowed value.
  3. Bump-my-version tries to selected the serialization method that requ…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@goto40
Comment options

@goto40
Comment options

Answer selected by goto40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants