aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-05-29 15:38:35 -0400
committerGitHub <noreply@github.com>2024-05-29 15:38:35 -0400
commit2008d0f7c9cfb0ab5ea908c216751dbc335d1735 (patch)
tree335b4dabfafa222eb5f94befbdb9211d74a7e5cb /lib/compiler
parentd750a78b2c0265bd7bb2b924c4c739cad5aa6666 (diff)
parent3b77f1ed7e69e8347e41c2f93dfdfc22f5ac07dd (diff)
downloadzig-2008d0f7c9cfb0ab5ea908c216751dbc335d1735.tar.gz
zig-2008d0f7c9cfb0ab5ea908c216751dbc335d1735.zip
Merge pull request #20115 from ziglang/zig-cache-rename
rename zig-cache to .zig-cache
Diffstat (limited to 'lib/compiler')
-rw-r--r--lib/compiler/fmt.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/fmt.zig b/lib/compiler/fmt.zig
index 2fc04b7935..e549a05bdd 100644
--- a/lib/compiler/fmt.zig
+++ b/lib/compiler/fmt.zig
@@ -236,7 +236,7 @@ fn fmtPathDir(
while (try dir_it.next()) |entry| {
const is_dir = entry.kind == .directory;
- if (is_dir and (mem.eql(u8, entry.name, "zig-cache") or mem.eql(u8, entry.name, "zig-out"))) continue;
+ if (mem.startsWith(u8, entry.name, ".")) continue;
if (is_dir or entry.kind == .file and (mem.endsWith(u8, entry.name, ".zig") or mem.endsWith(u8, entry.name, ".zon"))) {
const full_path = try fs.path.join(fmt.gpa, &[_][]const u8{ file_path, entry.name });