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

latest symlink #11

Closed
asottile opened this issue Dec 31, 2019 · 3 comments
Closed

latest symlink #11

asottile opened this issue Dec 31, 2019 · 3 comments

Comments

@asottile
Copy link

The directory structure of https://unofficial-builds.nodejs.org/download/release/ is very similar to that of http://nodejs.org/dist/ but does not provide a latest symlink

I'd be happy to contribute this, I'm poking around the files in bin currently but may need some direction

@asottile
Copy link
Author

asottile commented Jan 1, 2020

actually, I don't need this it seems

I was using /dist/latest but it turns out I can just as easily parse index.json in /download/release -- this is consistent across nodejs.org / iojs.org / unofficial-builds.nodejs.org 🎉

thanks again for these builds, super helpful (alpine)

@asottile asottile closed this as completed Jan 1, 2020
@rvagg
Copy link
Member

rvagg commented Jan 1, 2020

^ for the record, the lack of latest is intentional. It's a holdover from long ago that shouldn't be used but is now impossible to remove because people are using it. index.json and index.tab should be the only mechanisms you use to discover "latest".

Examples of using it:

@asottile
Copy link
Author

asottile commented Jan 1, 2020

makes total sense, I'm converting a popular tool nodeenv to use those files: ekalinin/nodeenv#247

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

No branches or pull requests

2 participants