| author | |
| committer | |
| log | 67ee68fc9eb02b78d7a2c26c617a16f60f91012d |
| tree | 81e7cfea212039bc264fed9aaabc4a0662a27cec |
| parent | b37fdf387a10bf76facc85a882f9ec7a8279c17a |
| parent | b9f75a39d3db7831ec37c81ffaf485e49dff5501 |
| signature |
path-related fixes for Package.Fetch and Package.Manifest2 files changed, 3 insertions(+), 1 deletions(-)
src/Package/Fetch.zig+2| ... | ... | @@ -1507,6 +1507,7 @@ const Filter = struct { |
| 1507 | 1507 | pub fn includePath(self: Filter, sub_path: []const u8) bool { |
| 1508 | 1508 | if (self.include_paths.count() == 0) return true; |
| 1509 | 1509 | if (self.include_paths.contains("")) return true; |
| 1510 | if (self.include_paths.contains(".")) return true; | |
| 1510 | 1511 | if (self.include_paths.contains(sub_path)) return true; |
| 1511 | 1512 | |
| 1512 | 1513 | // Check if any included paths are parent directories of sub_path. |
| ... | ... | @@ -1571,4 +1572,5 @@ const ErrorBundle = std.zig.ErrorBundle; |
| 1571 | 1572 | |
| 1572 | 1573 | test { |
| 1573 | 1574 | _ = Filter; |
| 1575 | _ = FileType; | |
| 1574 | 1576 | } |
src/Package/Manifest.zig+1-1| ... | ... | @@ -313,7 +313,7 @@ const Parse = struct { |
| 313 | 313 | var buf: [2]Ast.Node.Index = undefined; |
| 314 | 314 | const array_init = ast.fullArrayInit(&buf, node) orelse { |
| 315 | 315 | const tok = main_tokens[node]; |
| 316 | return fail(p, tok, "expected paths expression to be a struct", .{}); | |
| 316 | return fail(p, tok, "expected paths expression to be a list of strings", .{}); | |
| 317 | 317 | }; |
| 318 | 318 | |
| 319 | 319 | for (array_init.ast.elements) |elem_node| { |