Fix Protobuf header resolution with import_path, strip_import_path - #215
Conversation
Signed-off-by: Grégoire Geis <gregoire@seoulrobotics.org>
fe95852 to
6074ddf
Compare
|
Could you explain the bug being fixed here? I'm not sure I understand. |
|
Before this PR, if However, if This PR relies on the As an example, without the fix the new test will fail to resolve the Protobuf files: |
|
Thanks for explaining. This looks good. CI is broken due to a misconfiguration on my part. I recently enabled remote caching, but the secret needed to make that work is not available on PRs from external contributors. I'll fix that separately. Until that's fixed, I'm fine with running the tests manually to verify. But on my machine Please fix that first. |
Signed-off-by: Grégoire Geis <gregoire@seoulrobotics.org>
Signed-off-by: Grégoire Geis <gregoire@seoulrobotics.org>
This relies on translating the include paths from
foo/bar.pb.htofoo/bar.protoand then using theprotoimport resolution. I originally tried to implement the whole logic by parsinggazelle:proto_{strip_,}import_pathand applying it when we generate rules, but it was more complex, more fragile, and didn't work in all the cases tested in this commit.