You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "platinumhamburg (via GitHub)" <gi...@apache.org> on 2025/07/07 07:35:57 UTC
[I] [protogen] ProtoCodeGenerator only support importing proto files from absolute path [fluss]
platinumhamburg opened a new issue, #1284:
URL: https://github.com/apache/fluss/issues/1284
### Search before asking
- [x] I searched in the [issues](https://github.com/alibaba/fluss/issues) and found nothing similar.
### Fluss version
0.7.0 (latest release)
### Please describe the bug 🐞
The protostuff-parser is the core dependency for fluss-proto-generator for protobuf file parsing.
In ProtoCodeGenerator, we use it in the following way:
```
for (File input : inputs) {
Proto proto = new Proto();
ProtoUtil.loadFrom(input, proto);
.......
}
```
While the Proto's constructor provides various forms to customize the proto file loading behaviour, we only use the default constructor, which leads the ProtoLoader only support load proto files from absolute paths when processing import statements.
### Solution
We can pass the input (File) to the Proto's constructor, that will allow importing other proto files from the same directory.
### Are you willing to submit a PR?
- [x] I'm willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fluss.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [protogen] ProtoCodeGenerator only support importing proto files from absolute path [fluss]
Posted by "platinumhamburg (via GitHub)" <gi...@apache.org>.
platinumhamburg closed issue #1284: [protogen] ProtoCodeGenerator only support importing proto files from absolute path
URL: https://github.com/apache/fluss/issues/1284
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org