From 8a0e1ffbbc542594dec458c2d04c1580654427e1 Mon Sep 17 00:00:00 2001 From: Andrea Amantini Date: Thu, 24 Aug 2023 16:01:57 +0200 Subject: [PATCH] Fix preserving expanded-at on clerk/show --- src/nextjournal/clerk/analyzer.clj | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/nextjournal/clerk/analyzer.clj b/src/nextjournal/clerk/analyzer.clj index f1289a217..687a2f1f9 100644 --- a/src/nextjournal/clerk/analyzer.clj +++ b/src/nextjournal/clerk/analyzer.clj @@ -609,9 +609,10 @@ (let [digest-fn (case hash-type :sha1 sha1-base58 :sha512 sha2-base58)] - (-> value - nippy/fast-freeze - digest-fn)))) + (binding [nippy/*incl-metadata?* false] + (-> value + nippy/fast-freeze + digest-fn))))) #_(valuehash (range 100)) #_(valuehash :sha1 (range 100))