Skip to content

Commit

Permalink
Fixed handling google/protobuf import
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Malygin <ivan@swirldslabs.com>
  • Loading branch information
imalygin committed Aug 12, 2023
1 parent 075762c commit b1cf960
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ private void build(Iterable<File> allSrcFiles) {
for (var importStatement : parsedDoc.importStatement()) {
final String importedFileName = normalizeFileName(importStatement.strLit().getText());
// ignore standard google protobuf imports as we do not need them
if (importedFileName.startsWith("google/protobuf")) {
if (importedFileName.startsWith("google" + FileSystems.getDefault().getSeparator() + "protobuf")) {
continue;
}
// now scan all src files to find import as there can be many src directories
Expand Down

0 comments on commit b1cf960

Please sign in to comment.