Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Version dependencies #20

Open
AlekSi opened this issue Jan 31, 2013 · 9 comments
Open

Version dependencies #20

AlekSi opened this issue Jan 31, 2013 · 9 comments
Labels

Comments

@AlekSi
Copy link
Owner

AlekSi commented Jan 31, 2013

Use cases:

  1. ..* – any version
  2. X.. – major version X
  3. X.Y.* – major X, minor Y, any patch
  4. X.>=Y.* – major X, minor at least Y, any patch (X.>=0.* == X..)
  5. X.Y.Z

Case 5 is typical for application, 4 – for nut.

@nevir
Copy link

nevir commented Mar 17, 2013

Please consider semver style requirements, I'd be nice to avoid the Ruby gem issues that crop up due to overly restrictive requirements

~X.Y or ~X.Y.Z maybe?

@AlekSi
Copy link
Owner Author

AlekSi commented Mar 17, 2013

Nuts use versioning schema adapted from SemVer. What is "semver style requirements"? Typical nuts will use X.. or 0.Y.*.

@nevir
Copy link

nevir commented Mar 17, 2013

Mostly that you need some way of expressing a version requirement along the form of >= 1.2.0, < 2.0.0. I.e. "I depend on features introduced in 1.2.0"

And sometimes it's along the lines of >= 1.2.2, < 2.0.0 (i.e. "I depend on a bugfix found in 1.2.2")

@AlekSi
Copy link
Owner Author

AlekSi commented Mar 17, 2013

It probably will be 1.>=2.* in the future.

@kavu
Copy link

kavu commented Mar 18, 2013

And what about twiddlewakka ~>?

@nevir
Copy link

nevir commented Mar 18, 2013

Please don't port ~> over directly, it's broken in its current form on the Ruby side of things. https://coderwall.com/p/wbljca

@kavu
Copy link

kavu commented Mar 18, 2013

Hey, @nevir! A fair point! Thank you for this post!

@nevir
Copy link

nevir commented Mar 18, 2013

~> is so close, too :P We just need an operator that does >= X.Y.Z && < (X+1).0.0 - $> maybe!

@AlekSi
Copy link
Owner Author

AlekSi commented Mar 18, 2013

Updated issue description.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants