Skip to content

Commit

Permalink
Get rid of at.favre.lib/bytes dep
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadalm committed Jan 6, 2024
1 parent 71850db commit 06a770c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{:paths ["src" "test" "resources"]
:deps {at.favre.lib/bytes {:mvn/version "1.6.1"}
org.clojure/clojurescript {:mvn/version "1.11.60"}
:deps {org.clojure/clojurescript {:mvn/version "1.11.60"}
reagent/reagent {:mvn/version "1.2.0"}
re-frame/re-frame {:mvn/version "1.3.0"}
metosin/jsonista {:mvn/version "0.3.7"}
Expand Down
2 changes: 1 addition & 1 deletion src/build/util.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
(defn- sha-1 [s]
(let [c (java.security.MessageDigest/getInstance "sha-1")]
(.update c (.getBytes s "utf-8"))
(.encodeHex (at.favre.lib.bytes.Bytes/wrap (.digest c)))))
(reduce (fn [s b] (str s (format "%02x" b))) "" (.digest c))))

(defn- file-hash [f]
(-> f
Expand Down

0 comments on commit 06a770c

Please sign in to comment.