From d0e98fa757258c3ac88f6f60aebe197db6246635 Mon Sep 17 00:00:00 2001 From: Matt Meintjes Date: Wed, 3 Jul 2024 21:46:04 +1200 Subject: [PATCH] Add .clj-kondo/.cache to *path-filter* --- src/cljnix/nix.clj | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cljnix/nix.clj b/src/cljnix/nix.clj index 3f8b8c4..a233990 100644 --- a/src/cljnix/nix.clj +++ b/src/cljnix/nix.clj @@ -18,7 +18,8 @@ *path-filter* "Takes 1 argument, the path name. If true, the element will not be included in the NAR file" - #{".git"}) + #{".git" + ".clj-kondo/.cache"}) (declare serialize-entry) @@ -114,7 +115,7 @@ (str! "type") (str! "directory")) (doseq [entry (sort-by fs/file-name - (remove (comp *path-filter* fs/file-name) + (remove (fn [child] (some #(fs/ends-with? child %) *path-filter*)) (fs/list-dir path)))] (serialize-entry sink entry)) sink)