-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix paths for sibling repository setup and generated .proto files
Implement additional tests for protos across different repos with and without strip prefixes. Verify cc_proto_library and java_proto_library work over this setup without warnings. Choose cc_proto_library, because it generates files per .proto file and java_proto_library, because it generates a single file (jar) per proto_library. Address problems with --experimental_sibling_repository_layout: `-I../a.proto=<path>` never worked. Correct to `-Ia.proto=<path>`. Address problems with generated files in Bazel repositories when generate_protos_in_virtual_imports is False, which were hidden because the flag defaults to true. Fix incorrect and/or missing paths in --proto_path argument. Make it explicit that ProtoInfo.proto_source_root is in some cases returning a path with bindir/genfilesdir and in other cases without. PiperOrigin-RevId: 531414364 Change-Id: I1edf734632c58f50ffae7db22ee361dccbfb4917
- Loading branch information
1 parent
224d642
commit 6c6c196
Showing
6 changed files
with
215 additions
and
33 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
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