R
Railway11mo ago
jins

Can I specify the bun version to use?

What version of bun is Railway using right now? I'm having a deployment issue due to bcrypt: Error: Cannot find module '/app/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node' The fix was released last week with v1.0.17: https://github.com/oven-sh/bun/issues/4063#issuecomment-1851375848
GitHub
bcrypt version @5.1.0 errors out with bun install · Issue #4063 · o...
What platform is your computer? Linux 5.15.0-1037-aws x86_64 x86_64 How did you attempt to install or upgrade? installed all the deps. with command - bun install after installation, when the app st...
Solution:
You can specify it via a nixpacks.toml file in your project for example: ```toml [phases.setup]...
Jump to solution
14 Replies
Percy
Percy11mo ago
Project ID: c0958e3e-4cd8-4f89-9376-7c4003820f57
jins
jins11mo ago
c0958e3e-4cd8-4f89-9376-7c4003820f57
Solution
Fragly
Fragly11mo ago
You can specify it via a nixpacks.toml file in your project for example:
[phases.setup]
nixpkgsArchive = '9c69bc8cae2f3b38536a50801961e2e62da13595'
[phases.setup]
nixpkgsArchive = '9c69bc8cae2f3b38536a50801961e2e62da13595'
this is for version 1.0.18
Brody
Brody11mo ago
yo fragly nice job
jins
jins11mo ago
Solid, thank you!
Fragly
Fragly11mo ago
No problem :)
Dayblox
Dayblox3mo ago
For future readers, you can also use the latest commit like so
[phases.setup]
nixpkgsArchive = 'master'
[phases.setup]
nixpkgsArchive = 'master'
Duchess
Duchess2mo ago
New reply sent from Help Station thread:
Where can I find the nix archives?I need to pin to Bun 1.1.22. Bun still segfaults regularly with new releases, and I've found the best way to run it in prod is to pin to a version and manually upgrade every so often.
You're seeing this because this thread has been automatically linked to the Help Station thread.
Brody
Brody2mo ago
GitHub
History for pkgs/development/web/bun/default.nix - NixOS/nixpkgs
Nix Packages collection & NixOS. Contribute to NixOS/nixpkgs development by creating an account on GitHub.
Duchess
Duchess2mo ago
New reply sent from Help Station thread:
OK, it seems the latest Bun version you have is v1.1.20, but I specifically had to upgrade from that version to v1.1.22 due to segfaults, so if I try to run my Bun application on Railway, it just segfaults.I see you reverted "bun: 1.1.20 -> 1.1.24"Any chance you can push a v1.1.22 version?
You're seeing this because this thread has been automatically linked to the Help Station thread.
Brody
Brody2mo ago
Please note we do not maintain Nix Packages, that is a separate entity that we have no affiliation with, we are simply using them as a package manager. If you need cutting edge, for any language, on the majority of cloud container platforms, you will always need a Dockerfile. There is no overhead to using a Dockerfile as a Dockerfile is what Nixpacks is actually generating behind the scenes for you.
Duchess
Duchess2mo ago
New reply sent from Help Station thread:
@brody any chance you could work with Nix to get the latest Bun into their packages? Yes we can make our own Docker files, but1) Bun docker image is built without SIMD2) It's more tedious that what you get on Vercel, which seems to be able to keep up with Bun development. They have 1.1.26 at the moment.
You're seeing this because this thread has been automatically linked to the Help Station thread.
Brody
Brody2mo ago
No I'm sorry but thats not something we can do, Nix has their own maintainers for that, we are simply using them as a package manager, nothing more.
Want results from more Discord servers?
Add your server