Skip to content

Commit 4c9d222

Browse files
[bugfix] Make ProtoCodeGenerator allow importing other proto files from the same directory
1 parent c1710cc commit 4c9d222

File tree

1 file changed

+1
-1
lines changed
  • fluss-protogen/fluss-protogen-generator/src/main/java/com/alibaba/fluss/protogen/generator/generator

1 file changed

+1
-1
lines changed

fluss-protogen/fluss-protogen-generator/src/main/java/com/alibaba/fluss/protogen/generator/generator/ProtoCodeGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static void generate(
3535
List<File> inputs, File outputDirectory, String classPrefix, boolean useOuterClass)
3636
throws Exception {
3737
for (File input : inputs) {
38-
Proto proto = new Proto();
38+
Proto proto = new Proto(input);
3939
ProtoUtil.loadFrom(input, proto);
4040

4141
String fileWithoutExtension = Splitter.on(".").splitToList(input.getName()).get(0);

0 commit comments

Comments
 (0)