Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

latest / semver alias URL for the latest version's tarball #80

Open
jonathanong opened this issue Jan 19, 2015 · 15 comments
Open

latest / semver alias URL for the latest version's tarball #80

jonathanong opened this issue Jan 19, 2015 · 15 comments

Comments

@jonathanong
Copy link

would be nice to be able to do something like GET http://iojs.org/download/latest/iojs-latest.tar.gz and maybe a semver version like ~1.0.2

@Fishrock123
Copy link
Contributor

You mean as a header?

@jonathanong
Copy link
Author

no, a 303 redirect or just another API end point. so i can curl latest without knowing the actual latest version.

@therebelrobot
Copy link
Contributor

+1 to having a single endpoint pointing to the latest build, though this may need to be brought to the build team

@Fishrock123
Copy link
Contributor

@jonathanong couldn't you use http://semver.io/?

@zeke
Copy link
Contributor

zeke commented Jan 22, 2015

» curl https://semver.io/iojs.json | json

{
  "stable": "1.0.3",
  "unstable": "1.0.3",
  "all": [
    "1.0.0",
    "1.0.1",
    "1.0.2",
    "1.0.3"
  ],
  "stableVersions": [
    "1.0.0",
    "1.0.1",
    "1.0.2",
    "1.0.3"
  ],
  "updated": "2015-01-22T20:21:32.953Z"
}

» curl https://semver.io/iojs/stable

1.0.3

@jonathanong
Copy link
Author

i want to do this, which i can do with node but not iojs:

curl http://nodejs.org/dist/node-latest.tar.gz | tar -C /usr/local --strip-components=1 -xvz

@Fishrock123
Copy link
Contributor

That prints a list of files?

@jonathanong
Copy link
Author

that installs node...

@jonathanong jonathanong changed the title latest / semver symlinks latest / semver alias URL for the latest version's tarball Jan 22, 2015
@Fishrock123
Copy link
Contributor

OH

I see what you mean.

@rvagg can we have http://iojs.org/download/latest/iojs-latest.tar.gz point to the latest stable? We could also do a nightly one.

@jonathanong how do you propose semver selectors would look like / work for this?

@jonathanong
Copy link
Author

http://iojs.org/download/~1.0.0/iojs.tar.gz? whatever makes sense, but i'd expect the semver to be within //s for easier routing.

@rvagg
Copy link
Member

rvagg commented Jan 23, 2015

I'm not convinced this is a good idea just to avoid an additional lookup. You're essentially asking for a symlink copy for each file in each version directory too because we have one per supported platform.

@Fishrock123
Copy link
Contributor

I think it would be better to not symlink but have ngnix serve the correct one.

Basically, since nodejs.org does this, should we also?

@rvagg
Copy link
Member

rvagg commented Jan 23, 2015

what nodejs.org serves is the source tarball, does it serve an installable tarball for each platform?

@Fishrock123
Copy link
Contributor

I do know it installed properly for me. (OS X)

@mscdex
Copy link

mscdex commented May 5, 2015

+1 to some kind of easy-to-get-to latest tarball url, at least for the source code tarball (and/or xzball).

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

No branches or pull requests

7 participants