https://www.boundaryml.com logo
b
message has been deleted
m
Copy code
(venv) moof@miku:~/relations_manager/backend$ baml-cli generate
2025-08-01T14:53:17.697 [BAML ERROR] Error generating clients: Client generation failed

Caused by:
    Permission denied (os error 13)
Error: Client generation failed
(venv) moof@miku:~/relations_manager/backend$
I am working in an environment that was originally configured by Gemini, so there's a good bit about it that I don't know. is there any way to get more verbose output from generation?
(I got this when attempting to rm -rf baml_client and regenerate)
b
BAML_LOG=debug
this is inside the Docker image?
m
okay I fixed it user error lol I accidentally ran
rm -rf baml_cli
😭
anyways, I think that the best practice here is to say "if you are going to use baml-cli generate in your ci, put baml_client into your .gitignore"
b
Absolutely, will do - we've been trying to figure out how to make this happen out of the box so that users don't have to configure it themselves, but we should definitely just put it in the docs
m
also, dev images that run baml-cli generate during build need to generate to a non-mounted directory because if they generate to a mounted directory perms are cooked
b
Good callout, thanks
m
and the approach I am going with for sanity's sake is not using baml-cli generate in CI, it's just to commit the generated client and put baml-cli generate into my Justfile