orf 7 hours ago

It’s semver compatible because it can be parsed, accepted and compared by any system that expects or requires a semver formatted version?

The whole point of this is that in trunk-based releases the version isn’t significant, so why not call each one breaking.

1
chungy 6 hours ago

20241127214906.0.0 will be marked as incompatible with 20241127214907.0.0 by any such system that parses them.

jhanschoo 3 hours ago

> A TrunkVer is syntactically compatible with SemVer, although it does not respect its semantic interpretation of the version number.

The document specifically disclaims semantic compatibility.

orf 6 hours ago

Sure, but it does parse them and it does rightly understand that one is an newer version.

That’s… compatibility.

wakawaka28 6 hours ago

Newer is not always compatible. That's why SemVer looks like work to authors. They don't like to think about compatibility.

Kinrany 6 hours ago

That's (in-)compatibility between versions, not compatibility between versioning schemes.

wakawaka28 6 hours ago

You're not technically wrong but using the 3 numbers this way is in fact going to create problems for people trying to use this info. It means that you can never know if any version is compatible with others, and even if they were you could not easily link it.

harrall 4 hours ago

It’s not creating a new problem that didn’t already exist.

In many situations at work, trying to follow SemVer would be a technical solution to a non-technical problem.

You know who your users are. Before you make any breaking change, you already have cross-product team meetings with possible executive buy in.

In those scenarios, by time you assign a version number, everyone is already on the same page. The actual version number is meaningless and conveys no useful information. Spending any time on deciding the version creates unnecessary toil.

wakawaka28 1 hour ago

It is creating a problem that didn't exist because using this instead of SemVer eliminates the option to communicate meaningful compatibility information.

>You know who your users are. Before you make any breaking change, you already have cross-product team meetings with possible executive buy in.

Generally none of these things are true. You don't know your users or how they intend to use your product. The executives certainly don't care about version numbers.

There are some cases where nobody cares about version numbers, which mainly occur when there is one or a handful of consumers of a product and they are likewise committed to very frequent releases. This is not how most distributable libraries work. Furthermore, people care less about version numbers when the numbers are not correctly assigned in the first place. If you aren't using SemVer then it's just an increasing sequence for the most part.