Fork me on GitHub

Specter 1.1.4 released which adds compatibility with babashka 0.7.8+:

(require '[babashka.deps :as deps])

(deps/add-deps '{:deps {com.rpl/specter {:mvn/version "1.1.4"}}})

(require '[com.rpl.specter :as s])

(s/transform [(s/walker number?) odd?] inc {:a 1 :b [1 2 3]}) ;;=> {:a 2, :b [2 2 4]}

babashka 1


bash <(curl ) --version 0.7.9-SNAPSHOT --dir .

(require '[babashka.deps :as deps])
(deps/add-deps '{:deps {meander/epsilon {:mvn/version "0.0.650"}}})
(require '[meander.epsilon :as m])
(m/find [1 2] [?x ?y] ?y [?x ?y ?z] ?y) ;;=> 2

🤯 1
Mandimby Raveloarinjaka00:03:29

Nice! did you have to change something in meander codeline? I tried with nbb and it failed...

Mandimby Raveloarinjaka01:03:01

npx nbb -cp (clojure -A:nbb -Spath) -e "(require '[meander.epsilon :as m])" ----- Error -------------------------------------- Message: No matching clause: require-macros No matching clause: require-macros

Mandimby Raveloarinjaka01:03:35

and in my deps.edn 1 │ {:paths ["scripts"] 2 │ :aliases {:nbb {:replace-deps {com.github.seancorfield/honeysql {:git/sha "fe17b51e9a6ceb74fe27f66c76e28a2c16597003"} 3 │ com.github.noprompt/meander {:git/sha "7f2418fe353c66105c14f0b5e06f9f20bd64d412"}}}}}


I haven't tried it with nbb yet

Mandimby Raveloarinjaka21:03:50

Thanks for the confirmation. Once I get more insights on how the whole machinery works I hope I will be able to debug and contribute.

❤️ 1
Mandimby Raveloarinjaka23:03:29

with the latest release of nbb the "require-macros" does not block the import of anymore but then it seems that there is an implicit dependency on which is not recognized under nbb


Ok issue welcome