google / cargo-raze

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

Make work with `--incompatible_disallow_empty_glob` #518

Closed robin-wayve closed 1 year ago

robin-wayve commented 2 years ago

This BUILD content from cargo-raze https://github.com/google/cargo-raze/blob/e655d34c00fc6cc2c177c9448a7a45881817db66/impl/src/rendering/bazel.rs#L41-L59

causes this error

Error in glob: glob pattern '**/*.bzl' didn't match anything, but allow_empty is set to False

I'm not sure whether removing that pattern, or setting allow_empty = True would be the correct solution. I think there's more of these to correct too.