-
Notifications
You must be signed in to change notification settings - Fork 1k
add bun as a supported package manager #9005
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
base: master
Are you sure you want to change the base?
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Warning Gemini encountered an error creating the summary. You can try again by commenting |
Hi @nektro thanks so much for the contribution! It looks like this change is only for Bun support in the emulator. In order to accept this change, we would need to add support for Bun in the actual buildpacks as that's used during the production deploy process to App Hosting. You can see where we have the necessary infra to support other package managers here such as npm, yarn, pnpm, etc https://github.com/GoogleCloudPlatform/buildpacks/tree/main/cmd/nodejs The frustrating part is that we have an internal repository that is mapped to the open source repo I linked, meaning that I don't think it's possible for others to submit a PR to the buildpacks repo, since the changes first need to be made internally and then ported over to open source to ensure we remain in a consistent state. Do you mind sharing a bit more about your use case and why you use Bun, in general we'd love to learn more! In addition, please file a feature request on our UserVoice at https://firebase.uservoice.com/forums/948424-general?category_id=501599. I went through the existing requests and didn't see anything related to Bun, but we routinely check this as we do our planning cycles on what to work on next :) |
thanks for the heads up! i'll send a PR over there too
https://github.com/GoogleCloudPlatform/buildpacks/blob/main/CONTRIBUTING.md#code-reviews notes that github prs are accepted.
I work at @oven-sh and am happy to follow up on this if anything comes up. Bun is by a decent margin the fastest npm-compilatible package manager i've used and so i love to use it for that reason. the specific impetus for this patch was a user request https://x.com/elkriefy/status/1957914397893861432 |
Amazing thanks for the context, that's great to know I'll also surface this to the team! But overall we welcome this change and your contributions, and would love to support Bun (we have a few fans already here on the team). Feel free to ping this thread when you have a PR out in the other repo and I can help get the right eyes on it. I briefly synced with the relevant team and just 2 additional things I want to point out so that there isn't too much churn:
But overall excited for this change and thanks for your contributions! Please let me know and I'm happy to interface and engage the right teams on our end to get this out! |
Description
Adds https://bun.com as a supported package manager option by successfully detecting its lockfile.
Scenarios Tested
Adds tests too.