This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-22
Channels
- # announcements (3)
- # babashka (6)
- # beginners (29)
- # calva (10)
- # cider (14)
- # clj-kondo (67)
- # cljfx (6)
- # clojure (34)
- # clojure-australia (1)
- # clojure-europe (46)
- # clojure-italy (5)
- # clojure-nl (3)
- # clojure-spec (6)
- # clojure-uk (27)
- # clojured (1)
- # clojurescript (26)
- # conjure (14)
- # cursive (5)
- # data-science (1)
- # datomic (26)
- # deps-new (10)
- # editors (1)
- # events (2)
- # fulcro (23)
- # graalvm (41)
- # honeysql (5)
- # introduce-yourself (1)
- # jobs (1)
- # jobs-discuss (1)
- # luminus (2)
- # malli (22)
- # meander (5)
- # observability (3)
- # podcasts (1)
- # rdf (3)
- # re-frame (27)
- # remote-jobs (7)
- # reveal (6)
- # shadow-cljs (45)
- # xtdb (8)
Hey, I was wondering two things : • Is there a way to make the clj-http lib work with babashka • If not, is there a way to 'shadow' clj-http with clj-http-lite (kind of the same feature as yarn resolutions, each time sci sees a clj-http namespace it resolves it to clj-http-lite Thanks in advance
@lyderic.dutillieux clj-http doesn't work (from source) with babashka. clj-http-lite does work (https://github.com/babashka/clj-http-lite). You could "fake" clj-http by defining similar namespaces and just def
-ing vars that point to the clj-http-lite ones. Can you provide some background as to why you need this?
Also babashka packages both babashka.curl and org.httpkit.client which you could also use to "fake" clj-http, which saves you the burden of loading clj-http-lite from source.
The use case is that I have a leiningen project with some utilities that rely on clj-http and are used in production, and now I'ld like to have some developer tasks to execute some of these functions. I could use leiningen tasks actually, but if babashka supports it, I'm enclined to use it 🤓
@lyderic.dutillieux if you control the code, then it's easier. you could just make .cljc
files and use :bb
reader conditionals
Good to know, thanks for the pointers :)