R
Railway•16mo ago
luna

how to set bun version when using nixpacks?

Does NIXPACKS_BUN_VERSION work?
27 Replies
Percy
Percy•16mo ago
Project ID: N/A
luna
luna•16mo ago
N/A
Brody
Brody•16mo ago
that variable doesn't exist in the node providers code I'm not even sure what bun version it uses by default, for node there's a default node version variable but nothing for bun
luna
luna•16mo ago
😭 Seems the version they’re using is outdated enough that my code doesn’t work. Was hoping I didn’t have to switch to a dockerfile for this.
Brody
Brody•16mo ago
I assume it just uses whatever version is in the nix packages overlay
luna
luna•16mo ago
Where would I find that? Been clicking through the GitHub and yet to find it. 😅
Brody
Brody•16mo ago
I don't know if this is the same archive or overlay nixpacks is currently using, but this states bun 0.6.2 https://search.nixos.org/packages?channel=23.05&from=0&size=50&sort=relevance&type=packages&query=bun and that's kinda old
luna
luna•16mo ago
Yeah that’s out of date then. Should be 0.7.1 https://github.com/nixos/nixpkgs/blob/master/pkgs/development/web/bun/default.nix Seems this is up to date ah, 0.7.1 is marked as unstable
Brody
Brody•16mo ago
yeah railway wouldn't be using unstable
luna
luna•16mo ago
😦
Brody
Brody•16mo ago
out of interest, what bun version is railway using?
luna
luna•16mo ago
for bun you kinda need to, theyre pushing mulitple updates a day at times got any idea how to check 'cause I dont. 😅
Brody
Brody•16mo ago
start command: bun --version you get the idea lol
luna
luna•16mo ago
oh true
Brody
Brody•16mo ago
unless it says the bun version in the build table?
luna
luna•16mo ago
this?
Brody
Brody•16mo ago
the nixpacks build table at the top of the build logs
luna
luna•16mo ago
BRUH
$ bun -v && bun run ./src/index.ts 0.4.0
no fucking wonder who do i need to poke to get at least the latest stable version on railway? 😅
Brody
Brody•16mo ago
oh wow jr, but you could always pr a NIXPACKS_BUN_VERSION feature too 😉
alex
alex•16mo ago
wait i just realized something bun doesn't even work on alpine or at least i cant get it to work
luna
luna•16mo ago
lol did they blocked staff pings on here? it does, i run mine on alpine
Brody
Brody•16mo ago
yes they did
luna
luna•16mo ago
😭
alex
alex•16mo ago
what apk pkgs do you have to install to get it to work i installed libc6 and gcompat and a whole bunch of other things it just segfaults
alex
alex•16mo ago
please tell me Please
luna
luna•16mo ago
its likely just musl that's broken ill check tomorrow what i changed in my dockerfile for it
Want results from more Discord servers?
Add your server