This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-13
Channels
- # announcements (1)
- # asami (6)
- # babashka (7)
- # beginners (94)
- # biff (1)
- # calva (18)
- # clj-kondo (35)
- # cljsrn (1)
- # clojure (7)
- # clojure-europe (1)
- # clojure-nl (1)
- # clojure-uk (1)
- # clojurescript (18)
- # core-logic (1)
- # datalog (2)
- # editors (10)
- # exercism (2)
- # figwheel-main (1)
- # fulcro (2)
- # introduce-yourself (1)
- # lsp (33)
- # malli (7)
- # off-topic (3)
- # pedestal (1)
- # portal (2)
- # re-frame (16)
- # releases (1)
- # shadow-cljs (10)
- # specter (3)
- # tools-deps (8)
I just hit an edge case with :deps/prep-lib
. For JVM usage of a library that makes sense, but when using a library for other targets (e.g. CLJS or babashka) there might be reader conditionals that do not rely on JVM compilation.
An example: the specter
library uses one compiled Java class, but not for CLJS or babashka. To support running this lib in a clj
REPL, I added :deps/prep-lib
to it, but this made the library incompatible with babashka:
$ bb /tmp/specter.clj
Checking out: at a7190b1b74f6410c4efb0b5e67ceb5d3180bb757
Error building classpath. The following libs must be prepared before use: [com.rpl/specter]
https://github.com/borkdude/specter/blob/babashka/deps.ednincompatible because ... sorry not getting it
I read not as incompatible but as "requires prep" ?
Yeah, we don't have a concept of “conditionally requires prep”