-
Notifications
You must be signed in to change notification settings - Fork 6
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
Use node-releases from npm? #10
Comments
Interesting. There are for sure some benefits from this approach, that said it adds another layer between us and the upstream data. What if we supported both via a |
Or maybe just provide a way to pass in a custom schedule/dist list file (buffer or parsed JSON)? Would also beat having to |
Oh, I like that idea. So we would then also document using this new feature with the |
I was just using this lib in a new thing and so circled back on the issues. I think we should take a two part approach to this:
So the point of 2 is that we can get the same end benefit, but we can fully pre-process at build time. Then with this secondary package as a dep we can add add an option like Since it would be a nightly (or maybe since the project owns it we could hook it's build into the node release process directly) and imported with a loose(ish) semver range it would be "fresh" on install but lockable along with other deps for reproducible builds. Thoughts @dominykas? |
So what brought me back around to this issue is this use case: We use The reason I think the approach about with Just wanted to expand on why I think the above is a good solution. |
Is a nightly necessary? It only needs to be re-published when there's a new release. Thing is I figure that we don't want to publish And then yeah, passing in an explicit schedule as an override would also be quite useful (if I understood the intent behind how you use it at daily job), even if it's a starting building block. Footnotes
|
Yeah that is what I meant by that. The package you started the conversation with is a nightly build, so that is why I mentioned doing the same. The Main "win" I think we can get by managing it ourselves is doing all of the processing into aliases at build time instead of runtime in this package. So instead of the first run of this package building the alias mapping data structure from scratch we would have it prebuilt.
I really really would like to avoid proliferating git installs of things. There are so many things complex about analysis when the underling state is mutable. But maybe we get the best of both worlds. If we integrate a trigger on nodejs publish to rebuild and publish it to the registry, we can avoid the nightly but get an immutable artifact to reference. |
Just spotted https://www.npmjs.com/package/node-releases. Would it work better than fetching (and dealing with caching, etc) the data directly from GH?
The text was updated successfully, but these errors were encountered: