zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 1d1e5a86174940b2260d475c96c2dca4b6bbbef3 (tree)
parent 8c6b0271cc55d4c9ae2793340419df3fd3d2c1d7
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Thu, 12 Oct 2023 10:43:27 -0700

Package.Fetch: fix empty path and "." not including all

Related to #17491

Diffstat:
Msrc/Package/Fetch.zig | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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; }