https://www.boundaryml.com logo
🟑 CLI Command for Comparing baml_client and baml_...
# questions
n
Is there a cli command to determine whether the baml_client and baml_src are different? (CI)
v
sadly no check command. just always run
baml-cli generate
and look for diffs. i do like the idea of a: --lock or something here
are you finding yourself checking the
baml_client
folder?
we usually recommend git ignoring it
n
So you are always generating it on demand or what ?
v
yep on deploy
n
Hmmm
v
its pretty fast (<100ms)
n
Not sure I like that
Not because of the speed, but I don’t like the code generation on demand for logic Codebase is the in an invalid state with the types
v
https://docs.boundaryml.com/guide/development/deploying/docker The main reason we like doing this is similar to TS -> JS, or protobuf. Generally the final type is too noisy to check in. that said, we have some ideas on how to make the generated code simpler, and i think once we do that, it will be way safer to check in the code!
its also similar to
npm install
for example, where the types don't work until you install all the dependencies, but i do hear that concern of the git repo being in invalid state until you run
baml-cli generate