[roll pigweed] pw_build: Don't mutate deps list in bazel macros

The deps list is passed by reference. If the caller uses a variable as
the deps list, rather than a literal, that variable will be mutated as
a side effect of the macro invocation if we use `append`. This is not
intended.

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/106912

https://pigweed.googlesource.com/pigweed/pigweed
pigweed Rolled-Commits: ac7f0090500ed5b..79c1756eeb72e81
Roller-URL: https://ci.chromium.org/b/8805450035983418289
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I7ea26ee686b05953bf45fbe762fb08323ee602ac
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/zephyr-integration/+/107404
Bot-Commit: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
Commit-Queue: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
1 file changed
tree: 0f7de97ccaa9a52b9abbcfa4b2c2be2ff5e2e3d4
  1. .gitmodules
  2. test.sh