We have one community module - reportingcompatibility - for which we had to add a 4th level of versioning in order to handle a maintenance branch cut off of master.
The branch was cut off of the 1.5.13 release and into a branch called 1.5.13.x.
Thoughts on whether we can add an option for this script to take an argument that indicates that the semver checks should be skipped (or that a.b.c.d should be allowed generally)?
I’d suggest that 1.5.13-1 is at least a syntactically valid SemVer. Of course, the script would still fail on that, but we could updated it to use the SemVer recommended regex:
@mseaton why not release a 1.6.x (as the main version now), then keep the 1.5.x releases as the ones for the maintenance branch that way you do not need a 4th level of Semvar
@ssmusoke, it’s a good idea. That was my first instinct too, but I thought it wasn’t doable as there were other branches that had progressed on that version line. But now that I look at it again, I think I can likely make that work. That would definitely make things easier and clearer. Let me see if I can do that first.
Thanks to everyone who replied with their feedback - very insightful!
OK, after some trial and error (sorry for all of the build failure messages to those that subscribe), that seems to have worked. See ticket I created below to summarize: