Change GlobDirFilter fallback to true (#13882)

## Summary

I think `GlobDirFilter::match_directory` should return `true` if it
failed to construct a DFA
to force a full directory traversal. Returning `false` means that the
build backend excludes all files which
is unlikely what we want in that situation.
This commit is contained in:
Micha Reiser 2025-06-06 14:07:34 +02:00 committed by GitHub
parent a68fb53c4b
commit b865f76b78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,7 +85,7 @@ impl GlobDirFilter {
/// don't end up including any child.
pub fn match_directory(&self, path: &Path) -> bool {
let Some(dfa) = &self.dfa else {
return false;
return true;
};
// Allow the root path