From a431cfb3e4322a88f7638251f27e00a353ce5baa Mon Sep 17 00:00:00 2001 From: Enfernuz Date: Sat, 23 Sep 2017 21:59:28 +0300 Subject: [PATCH] * fixed the bug with the generation of corrupted "require" directives for .proto imports. --- protoc-plugin/protoc-gen-lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protoc-plugin/protoc-gen-lua b/protoc-plugin/protoc-gen-lua index b9bdeb3..786f884 100755 --- a/protoc-plugin/protoc-gen-lua +++ b/protoc-plugin/protoc-gen-lua @@ -413,7 +413,7 @@ def code_gen_file(proto_file, env, is_gen): lua('local module = {}\n') lua('local protobuf = require \'protobuf\'\n') for i in includes: - lua('local %s_pb = require \'%s_pb\')\n' % (i, i)) + lua('local %s_pb = require \'%s_pb\'\n' % (i, i)) lua('\n') map(lua, env.descriptor)