R
Railway13mo ago
wa

Provider bun not found

When adding "bun" as a provider, it errors with "Provider bun not found". Is there a list of valid providers?
Solution:
bun is more like a sub provider of node
Jump to solution
31 Replies
Percy
Percy13mo ago
Project ID: N/A
Solution
Brody
Brody13mo ago
bun is more like a sub provider of node
wa
wa13mo ago
ah ok
Brody
Brody13mo ago
and bun is detected when you have a bun lock file
wa
wa13mo ago
I think it would be useful to have a list of valid providers somewhere 👍
Brody
Brody13mo ago
oh right, my bad https://nixpacks.com/docs
wa
wa13mo ago
hmm actually it doesn't seem to be /bin/bash: line 1: bun: command not found
Brody
Brody13mo ago
do you have bun lock file ..and only a bun lock file
wa
wa13mo ago
I mean I have it in a subdirectory hence why I'm specifying it in the providers section I have a workaround tho well testing it rn
wa
wa13mo ago
No description
wa
wa13mo ago
Seems like a workaround is to do this:
wa
wa13mo ago
No description
wa
wa13mo ago
hmm npx is not a valid thonk try installing bun via bash command
Brody
Brody13mo ago
at this point just use a Dockerfile lol
wa
wa13mo ago
lol hmm looks like bun is installed with node
Brody
Brody13mo ago
node is installed with bun
wa
wa13mo ago
hmm ok i wonder why the bun command is not valid then
Brody
Brody13mo ago
would this be a monorepo?
wa
wa13mo ago
yes
Brody
Brody13mo ago
isolated or shared?
wa
wa13mo ago
it's isolated
Brody
Brody13mo ago
could you just set the appropriate root directory in the service settings then?
wa
wa13mo ago
lol funny story is i already am but if all fails ill probs do that hmm im able to get it to recognize bun now by adding a fake bun.lockb file but bun command still doesn't exist
Brody
Brody13mo ago
build logs please https://bookmarklets.up.railway.app/log-downloader/ also, why fake bun lock file? if you're using bun where is your real lock file?
wa
wa13mo ago
so the root directory is "automation" the subdirectories are "client" and "server" client contains the go code server contains the bun/js code but ill re-organize things
Brody
Brody13mo ago
I mean that alone doesn't seem out of the ordinary at all so hold off on the reorganization for now where is your real bun lock file located?
wa
wa13mo ago
automation/server/bun.lockb
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
Brody
Brody13mo ago
what did you set your root directory to in the service settings?
wa
wa13mo ago
lol yea after experimenting as soon as I add custom providers bun doesn't come installed so I'll just take ur suggestion and use dockerfile
Brody
Brody13mo ago
sounds good
Want results from more Discord servers?
Add your server