-
First of all, thanks for MinVer, it's an excellent tool! I'm having trouble figuring out how to use MinVer for computing pre-release versions when previous pre-releases are tagged. Let's explain with an example. I have set Now, one commit later, MinVer finds this tag and the next produced version is So here is my question: Is there a way to configure the current MinVer (either version 2.4.0 or 2.5.0-alpha.1) to produce a more sensible version? If not, would you accept a pull request modifying the current behavior? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
This was easier to fix than I expected so I went with a pull request: #489 |
Beta Was this translation helpful? Give feedback.
-
@0xced MinVer is working as expected. Versions with height are not intended for release. As @AshleighAdams says, MinVer is designed for "tag before release" workflows. Given your example, I would expect your first alpha to be tagged |
Beta Was this translation helpful? Give feedback.
-
I had the same observation as @0xced. We use trunk based development and it's nice to have pre-release tagging on main and non pre-release on realease branches. minver starts a new hegiht instead of summing to the one found on the nearest tag. I disagree that introducing this behavior to minver would be a breaking change because it could be controled via switch. Actual behavior is of course consistent with its design and generally it's a fantastic tool. I ended up summing these *.1.6.1.1 manually and tagging with sum to workaround this. |
Beta Was this translation helpful? Give feedback.
@0xced MinVer is working as expected. Versions with height are not intended for release. As @AshleighAdams says, MinVer is designed for "tag before release" workflows. Given your example, I would expect your first alpha to be tagged
1.0.0-alpha.1
. Subsequent commits will have height added. Then when you are ready to release your second alpha, you would tag it1.0.0-alpha.2
, etc. Then you would graduate your tags to beta, RC, RTM, etc.