starwing / lua-protobuf

A Lua module to work with Google protobuf
MIT License
1.71k stars 388 forks source link

fix unknown type when using relative namespace in proto #246

Closed DualHappiness closed 1 year ago

DualHappiness commented 1 year ago

修复引用外部type不使用全名时会导致unknown type的问题

// a.proto
syntax = "proto3";

package com.x.a;

message A {
  int32 n = 1;
}

// b.proto
syntax = "proto3";

package com.x.b;

message B {
 a.A a = 1;
}
starwing commented 1 year ago

Thanks!