grpc / grpc/grpc

[bazel] `cc_grpc_library` incompatible with `proto_library` that has `strip_import_prefix`

Open
#38,287 1 comment 0 reactions 1 assignee Claimed by @yuanweiz View on GitHub
lang/c++
Dominant language
C++
Stars
45.3k
Forks
11.4k
Avg merge
2d 12h
Merged PRs (30d)
47

Description

I believe this likely has the same root cause as https://github.com/grpc/grpc/issues/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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.