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

semver versioning for updates #17

Open
3rd-Eden opened this issue May 21, 2012 · 0 comments
Open

semver versioning for updates #17

3rd-Eden opened this issue May 21, 2012 · 0 comments

Comments

@3rd-Eden
Copy link
Member

Currenlty the update plugin just downloads every single version change that happens upstream. This can lead to unsave version jumps. What we should do is change the version: field to work just like the version: field of NPM package.json files so users can specify a version range that they want to receive updates for.

There 2 issues that prevents us from implementing it currently and that is:

  • we are using the version field to indicate the current version of file.
    • a solution for this would be reading the file from disk and re-parsing the version
    • store the value in a different key
  • not all files use semver compatible versioning
    • we could transform the received version to a semver compatible version
    • ignore the update
    • accept the update
  • sha1 keys from Github lookups are also stored in the version key
    • move it to a SHA key instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant