Skip to content

Commit 62ac8eb

Browse files
committed
bind new classloader to prevent linkage error
1 parent 43b21db commit 62ac8eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nextjournal/clerk/analyzer.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@
119119

120120
(defn analyze [form]
121121
(let [!deps (atom #{})
122-
analyzed (binding [ana/*deps* !deps]
122+
analyzed (with-bindings {#'ana/*deps* !deps
123+
clojure.lang.Compiler/LOADER (clojure.lang.RT/makeClassLoader)}
123124
(-> (analyze-form (rewrite-defcached form))
124125
(ana/resolve-syms-pass)
125126
(ana/macroexpand-pass)))

0 commit comments

Comments
 (0)