This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-25
Channels
- # announcements (1)
- # asami (3)
- # aws (2)
- # babashka (8)
- # beginners (60)
- # biff (3)
- # calva (45)
- # clj-http (3)
- # clj-kondo (19)
- # clojure (50)
- # clojure-europe (23)
- # clojure-nl (8)
- # clojure-spec (4)
- # clojure-uk (3)
- # clojurescript (32)
- # conjure (3)
- # datomic (7)
- # events (2)
- # fulcro (24)
- # graalvm (3)
- # inf-clojure (3)
- # jackdaw (1)
- # lsp (3)
- # malli (8)
- # missionary (14)
- # off-topic (1)
- # polylith (3)
- # portal (11)
- # rewrite-clj (63)
- # shadow-cljs (21)
- # spacemacs (7)
- # tools-build (6)
- # xtdb (4)
@borkdude Thanks for the help earlier today — I’m attempting to make runnable native images from each of the 3 {:local/root}
monorepo modules, even if it’s just a trivial main
, just to isolate the problems.
1. The good news is that I got one module (the reitit webserver) successfully compiling, but without any of the other modules included. (So it’s literally a web server that does nothing.)
2. The other good news is that the MySQL module is down to one of two errors — I think it’s matching very closely your experiments that you posted here: https://github.com/babashka/babashka/issues/372.
I put the test case here: https://github.com/realgenekim/mysql-bare-native, with a makefile to build/run the uberjar, and run the native-image build. (Haven’t switched over the bb yet! 🙂
I get one of three build errors, based on which version of I get one of two errors, depending on the io.quarkus/quarkus-jdbc-mysql I use. I put logs of all the error messages in the README.MD file.
Can you provide any guidance on getting clojure.jdbc and MySQL running? Thanks again!
@U6VPZS1EK Yes, you need to include this reflection configuration: https://github.com/babashka/babashka-sql-pods/blob/master/reflection-mysql.json and these flags: https://github.com/babashka/babashka-sql-pods/blob/5792dd29cfd68ad0605d3ed859db5212323fa307/script/compile#L85-L88
Thx! I had found those earlier today! 😆 Ah, so I think it must be guardrails (Tony Kay’s fork of ghostwheel.). Holy cow, it works!!! Thank you!! (Incredible work getting all these different libraries and database drivers working.) Okay, 2 down, 2 to go! 🙂 (Midnight here, but things are finally clicking into place.)