From 1d1e5a86174940b2260d475c96c2dca4b6bbbef3 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 12 Oct 2023 10:43:27 -0700 Subject: [PATCH] Package.Fetch: fix empty path and "." not including all Related to #17491 --- src/Package/Fetch.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Package/Fetch.zig b/src/Package/Fetch.zig index 44cab31114..5d315ffed4 100644 --- a/src/Package/Fetch.zig +++ b/src/Package/Fetch.zig @@ -1507,6 +1507,7 @@ const Filter = struct { pub fn includePath(self: Filter, sub_path: []const u8) bool { if (self.include_paths.count() == 0) return true; if (self.include_paths.contains("")) return true; + if (self.include_paths.contains(".")) return true; if (self.include_paths.contains(sub_path)) return true; // Check if any included paths are parent directories of sub_path. @@ -1571,4 +1572,5 @@ const ErrorBundle = std.zig.ErrorBundle; test { _ = Filter; + _ = FileType; }