3 ms·
I think this would have been useful with some code. My experience with Bazel is that you need a BUILD file in each subdirectory or something like that and every
by renewiltord 4y ago
I think this would have been useful with some code. My experience with Bazel is that you need a BUILD file in each subdirectory or something like that and every time I add a file I have to add it to that BUILD file.
Exceedingly tedious to use and has poor support in Clion.
It is likely that I don't have the constraints that this company has. The last time I tried this in Java I had to replicate my package dependency graph in Bazel. It was exceedingly pointless.
I found an example repo for rust and Bazel and it is just as tedious as I recall https://github.com/laramiel/bazel-example-rust https://github.com/laramiel/bazel-example-rust
- Game_Ender 4y agoIt is super tedious but for some languages a tool called Gazelle can auto-generate these for you. I know Go works well and there is a Java plugin too [0]. There is definitely some level rust support because that is how external crates are handled. 0 - https://github.com/bazel-contrib/rules_jvm/tree/main/java/gazelle https://github.com/bazel-contrib/rules_jvm/tree/main/java/ga...
- malkia 4y agoYou don't necesseraily need to, but ideally. a BUILD file declares a "package" and the demarcation line happens when it sees another BUILD file in a sub-directory. Then that's another "package".