Practical Bazel: Prefix All Generated Files
When writing a custom rule that generates files, be sure to add prefixes to all filenames so that multiple instances of your rule can be instantiated within the same Bazel package.
I like to place all generated files in a subdirectory prefixed
with the rule’s label and %
, as in:
|
|