juxt / clip

Light structure and support for dependency injection
MIT License
228 stars 15 forks source link

"Conditional read not allowed" error #12

Closed onetom closed 4 years ago

onetom commented 4 years ago

Reproduce:

nix-shell -p clojure --run "clj -Sdeps '{:deps {org.clojure/tools.namespace {:mvn/version \"1.0.0\"} juxt/clip {:mvn/version \"0.17.0\"}}}' -e \"(use 'juxt.clip.repl)\""
Syntax error reading source at (juxt/clip/repl.clj:57:5).
Conditional read not allowed

which is this line: https://github.com/juxt/clip/blob/master/src/juxt/clip/repl.clj#L57 from this code block:

(defn- ->deref
  [deref]
  #?(:cljs deref
     :default
     (if (fn? deref)
       deref
       (requiring-resolve deref))))
onetom commented 4 years ago

This error has manifested during the documentation CI pipeline too:

SevereOverfl0w commented 4 years ago

Hmph. That was stupid of me. Not sure how that got past my testing.