-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat: allows to skip node installation #1405
Conversation
I have a similar use case. We pre-build our assets as part of our CI pipeline and then push with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Switching code review request from the Languages team alias to the Ruby language owner)
I'm unfamiliar with bun, looking now. I found https://medium.com/nyc-ruby-on-rails/what-is-bun-d343601fed77 which is paywalled. I found https://bun.sh/. It looks like it's an alternative Node runtime like Deno which is written in Rust https://github.com/denoland/deno. I'm not clear on how it gets installed into a Ruby app or why. I found rails/rails#49241 linked from Ruby weekly. You can create a new app like this:
But then I'm unable to get it to build assets:
Here's the full rails output https://gist.github.com/schneems/33ae9ace6b120e363a107ef9a8014b54 I'm unclear on how bun is installed on Heroku or how it's invoked. If it's a node runtime then It looks like via https://bun.sh/docs/quickstart it doesn't give you a node shim but gives you a new command I found oven-sh/bun#559 but there's not a single recommended way to install it on Heroku. It's worth noting that in the future we'll be moving away from installing node and yarn and leaving that up to the node buildpack. This is in our CNB, which cannot be used right now https://github.com/heroku/buildpacks-ruby. |
I don't think I'll be merging this as it's not a feature I'll be able to forward port to the CNB and there are already mechanisms for avoiding installing those binaries. I think that If you need help getting bun to work on a Heroku app, please open a support ticket and I can take a look. I can't write a custom buildpack, but I know a lot about buildpacks and could help someone who is interested. |
Hey @schneems, thanks for the review. I do not have any issue installing bun, I have a build pack for this https://github.com/jetthoughts/heroku-buildpack-bun
yep, one of the options Overall, there was no problem installing the bun; the problem was to prevent the installation of nodes and yarn. I'll check your options with stubbing |
In order to use Bun with Rails, will be great to avoid redundant Node and Yarn installations.