Provider bun not found
When adding "bun" as a provider, it errors with "Provider bun not found". Is there a list of valid providers?
31 Replies
Project ID:
N/A
Solution
bun is more like a sub provider of node
ah ok
and bun is detected when you have a bun lock file
I think it would be useful to have a list of valid providers somewhere 👍
oh right, my bad https://nixpacks.com/docs
hmm actually it doesn't seem to be
/bin/bash: line 1: bun: command not found
do you have bun lock file
..and only a bun lock file
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
Seems like a workaround is to do this:
hmm npx is not a valid try installing bun via bash command
at this point just use a Dockerfile lol
lol
hmm looks like bun is installed with node
GitHub
Bun 1.0 Support (#962) · railwayapp/nixpacks@43bca47
* bun 1.0 support
* update snapshots
* update bun nixpkgs archive version
node is installed with bun
hmm ok i wonder why the bun command is not valid then
would this be a monorepo?
yes
isolated or shared?
it's isolated
could you just set the appropriate root directory in the service settings then?
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 existbuild 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?
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
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?
automation/server/bun.lockb
what did you set your root directory to in the service settings?
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
sounds good