Skip to content
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] cc_grpc_library incompatible with proto_library that has strip_import_prefix #38287

Open
jhance opened this issue Dec 14, 2024 · 0 comments

Comments

@jhance
Copy link
Contributor

jhance commented Dec 14, 2024

I believe this likely has the same root cause as #28199.

When I attempt to use cc_grpc_library with a proto_library that has a strip_import_prefix, there is some sort of conflict where protoc attempts to compile both the original proto path and the proto path from within virtual imports (which I assume is an effect of having a strip_import_prefix).

I tried making a few combinations of tweaks to the protoc rules but when I managed to make it not pick up the non-virtual-import proto file, the output was then generated to the incorrect location as well, so I am unsure what the fix would be. (Most of this proto virtual import stuff is very mysterious to me)

@jhance jhance changed the title [bazel] cc_grpc_library incompatible with proto_library that has strip_prefix [bazel] cc_grpc_library incompatible with proto_library that has strip_import_prefix Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant