dist: forbid multiple inputs which create same file

Current code will allow multiple input data labels
to produce a file with the same name. If flat=True,
subsequent labels will overwrite files from previous
labels. This seems dangerous and could lead to users
unintentionally distributing the wrong file.

By default, forbid multiple inputs that create the
same file in the output directory, but provide an
argument to allow legacy behavior (overwriting the
first files copied by the rule).

Bug: 244215515
Change-Id: I2a591e057d66c41e7f5139614f3cc525e1866c17
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2 files changed
tree: 6547982ca37b7334fc3f7b1ef9cc378b2027b59e
  1. dist/
  2. docs/
  3. exec/
  4. test_mappings/
  5. workspace/
  6. OWNERS
  7. README.md
README.md

Bazel Common Rules

This directory contains common Bazel rules and tools shared between the Platform and Kernel builds.

For platform-specific rules, place them in the platform checkout's //build/bazel/rules directory.

For kernel-specific rules, place them in kernel checkout's //build/kleaf directory.