Open eed3si9n opened 7 months ago
Currently the Google3 layout to colocate "main" and test targets in one package is limited to --no-aggregate-source
mode. This works ok for cases like Protobuf, but I think we also want to aggregate by package in languages like Scala and Java, and potentially even Python to reduce the risk of dangling source files (sources that are added to git but not tracked by any target).
problem
In a "Google3" layout, the source files are supposedly organized by their package names without language tags
scala/
or distinction ofmain
vstest
:com/example/
foo/
a.proto
b.py
C.scala
Currently bzl-gen-build does not support Google3-like layout because one run would overwrite the
BUILD.bazel
file.proposal
I wonder if we can support this use case if we implemented
--append
flag, and keep appending targets on the BUILD file.