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
Rollup should allow building from source. #5426
Comments
This would require people to set up a Rust toolchain on their system with the correct nightly version, which is non-trivial. Basically they need to follow the CONTRIBUTING.md file. Not sure if anyone would want to go through that hassle. You can easily try this out yourself, just install Rollup directly from GitHub, i.e. |
This comment was marked as resolved.
This comment was marked as resolved.
Hey, sorry it took so long for me to get back to you - I appreciate you response.
I absolutely agree, and I think the default should be the binaries. The main problem I'm having is none of the binary versions run on my system; as you suggested, I tried to compile from git - but from what I can tell it depends on a previous version of rollup to build (?) - which won't run on my system - the It would also be nice not to manage npm overrides for the git version, but I'm focused on getting any version running natively for now. |
Building Rollup without Rollup would indeed be something nice. I wonder if we could create a bootstrap build using https://www.npmjs.com/package/vite-node, but this would still rely on the native code of esbuild for the TypeScript conversion and would probably not solve your problems. |
Actually, I think it might solve my problem, since I am able to compile esbuild from scratch (with |
Reminds me of https://guix.gnu.org/en/blog/2023/the-full-source-bootstrap-building-from-source-all-the-way-down/ |
May I ask @xbjfk what is your OS triplet ? Do you want I cross compile a reproducible rollup (in CI so you can trust binary) |
Feature Use Case
This features is useful for people who are:
a) security conscious and prefer compiling everything from source or
b) have a non-standard system not supported by binary packages provided
Feature Proposal
I would suggest this be implemented with respect to the
--build-from-source
flag passed to npm, just likenode-pre-gyp
does: mapbox/node-pre-gyp#8The text was updated successfully, but these errors were encountered: