Skip to content

Commit

Permalink
Require path-based protoc to be executable
Browse files Browse the repository at this point in the history
  • Loading branch information
ascopes committed Oct 23, 2023
1 parent 17ff6ec commit c6cceee
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public Path resolveProtoc() throws ProtocResolutionException {

try (var fileStream = Files.list(indexableDirectory)) {
var result = fileStream
.filter(Files::isExecutable)
.filter(this::isProtoc)
.findFirst();

Expand Down

0 comments on commit c6cceee

Please sign in to comment.