Fork me on GitHub

Apologies if this is not the right channel but is org.babashka/spec.alpha incompatible with Clojure on the JVM? I'm trying to start a Clojure CLI REPL:

clj -Sdeps '{:deps {org.babashka/spec.alpha {:git/url "" :git/sha "8df0712896f596680da7a32ae44bb000b7e45e68"}}'
but I'm getting this error:
Error while parsing option "--config-data {:deps {org.babashka/spec.alpha {:git/url \"\" :git/sha \"8df0712896f596680da7a32ae44bb000b7e45e68\"}}": java.lang.RuntimeException: EOF while reading


You forgot one closing } - and it's not recommended to use babashka spec with clojure

facepalm 1

Oops, sorry, you're right; I posted the wrong thing. With a correct config I'm getting a Syntax error macroexpanding clojure.core/defn before the REPL is up. I understand that the fork is meant to be used with babashka; I'd just like to use a Clojure REPL to explore a project that is using it (blambda). For the purposes of this experiment I think replacing the fork with the vanilla spec.alpha in deps.edn would work.


yes, just add clojure spec "in front of" the bb spec dependency, e.g. via an extra alias and you should be good to go

🙏 1