Skip to content

Commit

Permalink
Follow symlinks in proto files lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Haarolean committed Apr 2, 2024
1 parent 1d318cb commit 0fd0f0b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import io.kafbat.ui.serdes.BuiltInSerde;
import io.kafbat.ui.util.jsonschema.ProtobufSchemaConverter;
import java.io.ByteArrayInputStream;
import java.nio.file.FileVisitOption;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Collection;
Expand Down Expand Up @@ -404,7 +405,7 @@ private Loader createFilesLoader(Map<String, ProtoFile> files) {
@SneakyThrows
private Map<String, ProtoFile> loadFilesWithLocations() {
Map<String, ProtoFile> filesByLocations = new HashMap<>();
try (var files = Files.walk(baseLocation)) {
try (var files = Files.walk(baseLocation, FileVisitOption.FOLLOW_LINKS)) {
files.filter(p -> !Files.isDirectory(p) && p.toString().endsWith(".proto"))
.forEach(path -> {
// relative path will be used as "import" statement
Expand Down

0 comments on commit 0fd0f0b

Please sign in to comment.