-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bazel] Correctly handle proto files under _virtual_imports #1095
Conversation
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
d04975d
to
7f6f6ac
Compare
This can happen if: 1. `proto_library` contains at least one of `import_prefix/strip_import_prefix`, or 2. (for Bazel >= 1.0) at least one of `proto_library`'s `srcs` is generated. Fixes grpc-ecosystem#1094
Codecov Report
@@ Coverage Diff @@
## master #1095 +/- ##
=======================================
Coverage 53.89% 53.89%
=======================================
Files 42 42
Lines 4180 4180
=======================================
Hits 2253 2253
Misses 1681 1681
Partials 246 246 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m glad I could help! Thanks
Sorry, I spent all day on an airplane. I'll confirm the CLA stuff in the morning and merge |
This PR doesn't totally resolve my issue. When I use this in my real project, I am still having virtual import issues.
Link to PR: prysmaticlabs/ethereumapis#33 Any idea @Yannic ? |
@prestonvanloon This is weird. I see there is |
Confirmed Maybe that could be a feature for rules_bazel? I needed the descriptor set to give to envoy grpc gateway proxy. |
I assume you mean If you need a single descriptor set with transitive imports, I recommend |
Oh yes, I meant rules_proto. Sorry about that! Oh awesome, this resolves my problem for now. Thanks! |
@achew22 friendly ping? |
@Yannic, thanks for pinging. Sorry about that. @prestonvanloon could you follow the instructions from the CLA bot:
Based on the dashboard I think that should be sufficient. Thanks so much! |
@googlebot I consent. |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
Let's ship it. Thanks to both of you! |
This can happen if:
proto_library
contains at least one ofimport_prefix/strip_import_prefix
, orproto_library
'ssrcs
is generated.Fixes #1094
@prestonvanloon I took the liberty to include a commit from your repro in this PR to have a target that fails without the patch and passes with it. I hope you don't mind :).