diff --git a/src/Skipper/Matcher/FileInfoMatcher.php b/src/Skipper/Matcher/FileInfoMatcher.php index c7110345d01..a2349490f79 100644 --- a/src/Skipper/Matcher/FileInfoMatcher.php +++ b/src/Skipper/Matcher/FileInfoMatcher.php @@ -61,6 +61,11 @@ private function doesFileMatchPattern(string $filePath, string $ignoredPath): bo return true; } + // realpathMatcher cannot resolve wildcards -> return early to prevent unnecessary IO + if (str_contains($ignoredPath, '*')) { + return false; + } + return $this->realpathMatcher->match($ignoredPath, $filePath); } }