Using <= for every dependency in case of following semantic versioning idea

Posted by zerkms on Programmers See other posts from Programmers or by zerkms
Published on 2013-05-30T22:28:05Z Indexed on 2013/10/22 10:14 UTC
Read the original article Hit count: 334

As Semantic Versioning (and common sense) declares - the major version is incremented in case if non backward compatible change is introduced.

Now let's assume we have a project called Project that has a current version 1.0.42 and a library Lib it depends on that is of a 2.1.3 version at the moment.

Does that mean that following semver ideology we should constraint the dependency of the Project to be Depends: Lib (< 3)?

From my experience - no one does that, but I find it semantically correct and very self-descriptive.

What do you think of this?

© Programmers or respective owner

Related posts about versioning

Related posts about dependencies