iojs.org icon indicating copy to clipboard operation
iojs.org copied to clipboard

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

Open jonathanong opened this issue 10 years ago • 15 comments

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

jonathanong avatar Jan 19 '15 05:01 jonathanong

You mean as a header?

Fishrock123 avatar Jan 19 '15 13:01 Fishrock123

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

jonathanong avatar Jan 22 '15 09:01 jonathanong

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

therebelrobot avatar Jan 22 '15 16:01 therebelrobot

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

Fishrock123 avatar Jan 22 '15 16:01 Fishrock123

» 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

zeke avatar Jan 22 '15 20:01 zeke

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

jonathanong avatar Jan 22 '15 20:01 jonathanong

That prints a list of files?

Fishrock123 avatar Jan 22 '15 20:01 Fishrock123

that installs node...

jonathanong avatar Jan 22 '15 20:01 jonathanong

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?

Fishrock123 avatar Jan 22 '15 20:01 Fishrock123

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.

jonathanong avatar Jan 22 '15 22:01 jonathanong

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.

rvagg avatar Jan 23 '15 00:01 rvagg

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?

Fishrock123 avatar Jan 23 '15 00:01 Fishrock123

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

rvagg avatar Jan 23 '15 00:01 rvagg

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

Fishrock123 avatar Jan 23 '15 01:01 Fishrock123

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

mscdex avatar May 05 '15 17:05 mscdex