-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Commit-Queue: Ted Pudlik <[email protected]>
- Loading branch information
Showing
5 changed files
with
166 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.