Fork me on GitHub
#nbb
<
2022-08-03
>
genRaiy14:08:01

thinking about using honeysql but want to avoid the JVM dependency cos I'm targetting a nodejs Lambda and the CI would be complicated

genRaiy14:08:53

@borkdude you suggested cloning honeysql and adding it the classpath manually

👍 1
genRaiy14:08:35

so we just add that cloned folder to the CP? and 💥 we're :first_place_medal:

genRaiy14:08:59

I'll give it a try

borkdude14:08:02

yeah, if the dep has no other deps which I believe is the case for honeysql

borkdude14:08:21

you should add the folder/`src` to the classpath

genRaiy14:08:03

npx nbb --classpath src:test:../../oss/honeysql/src -m runner and the :require worked ... now to test the code

genRaiy15:08:30

connecting to the DB seems like a PITA

genRaiy15:08:15

but these folks have cleared the path

sirwobin11:08:25

How are you managing the dependency in your project @U04V5V0V4? I was considering making a cljs git project a submodule in my project. Submodules are painful though.

genRaiy11:08:03

I made a clone and just copied over the src folder. But see the thread in #honeysql https://clojurians.slack.com/archives/C66EM8D5H/p1659539939063599

genRaiy11:08:33

seems like it's not well supported on CLJS yet so I'm dropping it for the moment

genRaiy15:08:46

FYI with nbb we need to use

["pg$default" :as pg]