google / cargo-raze

Generate Bazel BUILD from Cargo dependencies!
Apache License 2.0
480 stars 104 forks source link

Support recursive submodules in git dependencies #531

Open snowp opened 2 years ago

snowp commented 2 years ago

When using a Git dependency, raze generates a new_git_repository with init_submodules = True (https://github.com/google/cargo-raze/blob/142d1b3c63b235eaebddad1829746f6f208fd8a6/impl/src/rendering/templates/remote_crates.bzl.template#L20)

We have a use case where we really want recursive_init_submodules set. Would it be reasonable to make this possible, either by making it the default or adding some configuration for this? Happy to do the work here either way