From c6cceee9b600937142de87015d36092c85d1feee Mon Sep 17 00:00:00 2001 From: ascopes <73482956+ascopes@users.noreply.github.com> Date: Mon, 23 Oct 2023 07:31:11 +0100 Subject: [PATCH] Require path-based protoc to be executable --- .../ascopes/protobufmavenplugin/resolver/PathProtocResolver.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/io/github/ascopes/protobufmavenplugin/resolver/PathProtocResolver.java b/src/main/java/io/github/ascopes/protobufmavenplugin/resolver/PathProtocResolver.java index 29d17941..cc65b79f 100644 --- a/src/main/java/io/github/ascopes/protobufmavenplugin/resolver/PathProtocResolver.java +++ b/src/main/java/io/github/ascopes/protobufmavenplugin/resolver/PathProtocResolver.java @@ -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();