Fork me on GitHub
#duct
<
2021-06-24
>
greg15:06:52

Hi, I'm trying to build an uberjar with https://github.com/seancorfield/depstar for duct project. I've encountered a strange behaviour. So I compile project. Compilation goes fine, but when I try to run it I got:

No method in multimethod 'init-key' for dispatch value: :duct.profile/base
This is strange because duct/exec-config should do the job and remove this key in (prep-config) step. It works when I run it from REPL. I'm not talking separate init procedure using integrant.repl. The exactly same code booting the app works fine when running from REPL. Any thoughts what am I missing here?

Kevin15:06:04

Might be because you're not using Lein. Maybe this can help: https://github.com/duct-framework/duct/issues/92

greg15:06:18

Oh, yeah, that is the issue

colliderwriter17:06:36

Does anyone know why capsule's site is down and whether that should worry users?

greg13:06:12

@UG9U7TPDZ once again thanks for help, I end up using pack.alpha with capsule. @U0GFU866B it looks like the original project is dead, so does website. You can access the website by archive: https://web.archive.org/web/20191207104737/http://www.capsule.io/ More on this: https://github.com/juxt/pack.alpha/issues/88 https://github.com/puniverse/capsule/issues/134 TBH would be nice to know that someone is looking after the project. I guess if at some point it becomes incompatible someone pick it up or we move to another solution.

greg22:06:45

I created a sample repo showing the usage of both • pack+capsule, • lein uberjar + lein-tools-deps. https://github.com/rynkowsg/examples/tree/9a0ee348aba327fe344a357e0c433ebff48b17ac/clojure-duct-uberjar

colliderwriter06:06:24

that's very helpful. thanks .

👍 3