Skip to content
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

Allow channel updates across releases. #1

Merged
merged 1 commit into from
Jan 5, 2016
Merged

Conversation

skewart
Copy link

@skewart skewart commented Dec 15, 2015

The node semver module that Nuts currently uses to compare versions does not allow pre-release channel comparisons across actual releases. For example, if a client currently at version 0.1.1-alpha.1 requests an update, and the latest alpha channel build is 0.1.2-alpha.1, then, by default, Nuts will respond saying the only update available is 0.1.1, ignoring the latest alpha pre-release. Also, if an alpha client has updated to a production release (say, from 0.1.1-alpha.1 to 0.1.1) then it won't be able to fetch alpha updates for the next release (e.g. 0.1.2-alpha.1). This behavior is by design in the semver module.

This commit changes the default Nuts behavior to allow dedicated channel clients to always get the latest appropriate build - be it a channel build or a production release.

See this thread discussing the issue with the primary Nuts dev: GitbookIO#20

This should probably be cleaned up a little before opening a PR into the primary Nuts repo. This is just to get things moving for now.

@skewart skewart force-pushed the support-channels branch 3 times, most recently from 0190e8e to 1eb3707 Compare December 22, 2015 06:43
skewart added a commit that referenced this pull request Jan 5, 2016
Allow channel updates across releases.
@skewart skewart merged commit 9bfbb16 into master Jan 5, 2016
ghost pushed a commit to Coldewey/nuts that referenced this pull request Jun 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant