-
Notifications
You must be signed in to change notification settings - Fork 458
Closed
Description
Currently the following filename patterns are treated as TypeBuild;
.BUILDfile extension (*.BUILD) - suitable for copying into repository rules.BUILDbase name (BUILDorBUILD.bazel).BUILD.prefix (BUILD.*.bazel) - suitable for copying into repository rules.
For repository rules BUILD and BUILD.bazel cannot be used as the files will be parsed by Bazel in the owning repository, leading to side effects (affects labels and BUILD files for the repo rule may be outside of their intended destination).
*.BUILD and BUILD.*.bazel cover this issue, however these have issues for our (Canva) use case;
- In our style guide we require file extensions like
.bazeland.bzl. - For trivial third-party dependencies we name files like
a.BUILD.bazelanda.MODULE.bazelso they naturally sit beside each other. *.MODULE.bazelis the only alternative pattern supported forTypeModule.starplsdoes not recogniseBUILD.*.bazelasBUILDfiles (IMO a bug in the language server, but worth mentioning as an observed point of friction).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels