-
Notifications
You must be signed in to change notification settings - Fork 12
chore: define version for dependencies #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we generally don't specify upper ranges on dependencies since this more often than not is obnoxious to users and breaks resolution for no good reason, specially on 0.x-deps.
This is optimistic versioning, where we only add upper ranges once it is known for certain that something broke, in the cases where the breakage cannot be resolved in the downstream user of the package (typically the "end application").
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seen in a different way: upper ranges only make sense for packages that explicitly state they follow semver, which these packages don't (ie like python, Nim has a flexible approach to versioning in its ecosystem).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hum got it, thanks for the explanation.
So if this package does not follow
semver, let's say that the next version0.2.10contains a breaking change. Is nimble smart enough to keep the0.2.9in my project ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's not (I've thought about a "try all versions" style of command that would discover such breakage - would be neat, for autoversioning).
fwiw, the
>=constraints are useful - feel free to add them to this library. They should be set to the lowest possible version that works for n-j-s.Due to how symbol lookups are done, there are very few ways you can change code in nim that is guaranteed not to break downstream code - ie ABI stability is pretty hard to achieve.
The reality of nim is thus "mostly works but might break a few things" and there's no way to express that in semver - specially for libraries like stew which are really collections of libraries where most usages are not affected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay thanks a lot for those details