You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are seeing a protoForTesting/test/test_service_one.proto needs to import protoForTesting/test/test_service_two.proto exception when we load the following protobufs using SchemaLoader.
Proto directory structure:
- protoForTesting
- common
- common.proto
- test
- test_service_one.proto
- test_service_two.proto
common.proto (NOTE: no package definition):
syntax = "proto3";
message Common {
}
test_service_one.proto
syntax = "proto3";
package test;
import "common/common.proto";
service TestingServiceOne {
rpc TestingMethod(TestingServiceOneRequest) returns (TestingServiceOneResponse);
}
message TestingServiceOneRequest {
Common common = 1;
}
message TestingServiceOneResponse {
}
test_service_two.proto: NOTE: the package definition is same as test_service_one.proto
So the test_service_one.proto is importing the Common from common/common.proto, however it seems the Loader is trying to load the Common from the test_service_two.proto and complain.
The text was updated successfully, but these errors were encountered:
jianchaoxudd
changed the title
Conflicted Messages during loadSchema
Conflict Messages during loadSchema
Oct 1, 2024
Hi team,
We are seeing a
protoForTesting/test/test_service_one.proto needs to import protoForTesting/test/test_service_two.proto
exception when we load the following protobufs usingSchemaLoader
.Proto directory structure:
common.proto (NOTE: no package definition):
test_service_one.proto
test_service_two.proto: NOTE: the package definition is same as test_service_one.proto
And here is how we load the protobuf.
So the
test_service_one.proto
is importing theCommon
fromcommon/common.proto
, however it seems the Loader is trying to load theCommon
from thetest_service_two.proto
and complain.The text was updated successfully, but these errors were encountered: