From b865f76b7825c38029c7782788cc602f5b5b354c Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Fri, 6 Jun 2025 14:07:34 +0200 Subject: [PATCH] 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. --- crates/uv-globfilter/src/glob_dir_filter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/uv-globfilter/src/glob_dir_filter.rs b/crates/uv-globfilter/src/glob_dir_filter.rs index eaca7ee0e..e963ee86e 100644 --- a/crates/uv-globfilter/src/glob_dir_filter.rs +++ b/crates/uv-globfilter/src/glob_dir_filter.rs @@ -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