Skip to content

Commit

Permalink
Add .clj-kondo/.cache to *path-filter*
Browse files Browse the repository at this point in the history
  • Loading branch information
mjmeintjes authored Jul 3, 2024
1 parent 59447e7 commit d0e98fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cljnix/nix.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d0e98fa

Please sign in to comment.