-
Notifications
You must be signed in to change notification settings - Fork 513
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
Failed to process proto source files.: given files include multiple copies of "common.proto" starting with v1.8.8 #417
Comments
@mariemat, multiple proto files merely importing the same other files wouldn't be the issue. Something else is going awry that causes the same file to be processed 2x (and just importing a file doesn't cause it to be re-processed). Could you provide more details about the actual command-line arguments you are providing and perhaps a snippet (mainly the precise Also, could you try installing the latest from head ( |
Thanks @jhump, I checked with There is not trick around the imports.
The If I remove the |
Ah. What does the actual import line look like then? I suspect you have a mismatch between the relative path used on the command-line and the import statements in referring files. So the tool doesn't know that the two paths are the same file and thus tries to load both. The changes I mentioned (in #416) should have helped to match the behavior of the older versions more closely. But if they did not, then can you provide more info about:
|
I got the same error. I think the reason is that Example:
If you now run
it will produce the output:
Not sure if this is intended behavior, but the workaround for now is to remove |
Definitely not. That is surprising that so simple an example triggers it with the latest (merged but unreleased) code, given the tests I added to the underlying function in protoreflect 😕. I'll see if I can repro the issue with the suggested layout and arguments and debug a little further if so. |
When I execute a
grpcurl
command to execute a call, and I provide multiple proto files that each import the samecommon.proto
, then I get the error :This happens only with 1.8.8 (not with 1.8.6, nor 1.8.7)
I believe this is common for multiple proto files to import the same utilities, and
grpcurl
should not enforce that conditionThe text was updated successfully, but these errors were encountered: