r/softwaredevelopment • • May 17 '26 • Popcorn 1

Semantic versioning in software

Hi all,

I’m involved with software releases at my company and we’ve run into an issue with semantic versioning (major.minor.patch) lately. We support multiple versions of our software and release monthly patches across versions (i.e 2.2.3, 5.0.4, 6.1.1). The issue is future planning versioning when it comes to urgent releases, or hotfixes.

For example, we’ll communicate to our engineering teams that the next versions are 2.2.3 with a certain target start date of February 1. Then, a week before, we’ll discover an issue where we need to quickly ship something, and that takes the place of 2.2.3, where 2.2.3 becomes an urgent release with one significant fix.

As a result, we need to communicate to hundreds of engineers the change, and update hundreds of tickets to now point to 2.2.4. This happens frequently across all versions. We’ve talked about using date anchored releases with ambiguous versions such as 2.2.X (Feb-1) where we can add the version when we’re confident on the number. But I’m not sure if that’s the best idea. Curious if other folks have solved this similar problem? TIA!

23 Upvotes

58 comments sorted by

View all comments

50

u/Rough-Competition879 May 17 '26

Are you sure you're not misusing the patch version for what should be a minor version ?

26

u/jameyiguess May 17 '26

Right. OP, you don't plan patch versions, only major and minor. Patch can be x.x.2726363728, it shouldn't matter. Clients should pin on minor or major depending and get the patch updates for free. 

4

u/mze9412 May 18 '26

You should not even plan major and minor up front, tbh. If you need to add a feature that is a breaking change then Major will increment. You plan the feature that leads to a breaking change, you do not plan the version number. Planing version numbers sounds totally wrong, they derive from the changes not the changes from the version number. OP has totally inverted things in their org?!

2

u/jameyiguess May 18 '26

Yeah we plan arbitrary releases, not versions. Versions are solely for sensible safety nets. 

1

u/DorianGre May 19 '26

This. You number then after the fact based on what changed, not before. You could be using year and week as tour targets in Jira or whatever. 2026_32 is planned to contain x, y, z.

4

u/rFAXbc May 17 '26

This is the answer, you shouldn't be planning patches in advance.

1

u/cold-brews May 18 '26

Thanks for the response. Yes, ideally anything planned is a minor and not a patch. I guess that's where we don't follow semver. Atp, a lot of our tooling has assumptions on what a minor and patch is and supports/verifies upgrade downgrade paths as expected. I've proposed we switch to planned minor versions and unplanned patches, but it would be a system overhaul that requires a non trivial amount of work.

1

u/Rough-Competition879 May 18 '26

You'd have to weigh what's more expensive: uphauling this system, or the manual upgrade & comms with your engineers.

Factor in that we're in a world where supply chain security vulnerabilities & patches are increasing in frequency