commit | af32de572d37fd94cb18695d579c76925b5ce115 | [log] [tgz] |
---|---|---|
author | Ted Pudlik <tpudlik@google.com> | Thu May 12 01:19:02 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 12 21:01:14 2022 +0000 |
tree | 75b61540836e2af4ddb6b8eaf29a2a3584b446c6 | |
parent | 1d8f780fb06680a5bab9970d8cf757e2e27d4822 [diff] |
pw_transfer: Tidy up bazel proto imports This change switches from relying on `copy_file` to using try/except to import generated protos from the location bazel expects to find them. This is less brittle: we're actually providing the generated code as a dependency rather than tricking the build system into treating it as opaque "data" that the Python interpreter will hopefully find at runtime. In particular, it should actually work internally. See the associated bug for a discussion of other options. This one has the smallest blast radius. Bug: 642 Bug: b/232310150 Change-Id: I575bf96dd06346a1a024c08d2aef0914563a9776 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/94264 Reviewed-by: Anthony DiGirolamo <tonymd@google.com> Commit-Queue: Ted Pudlik <tpudlik@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/