This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-27
Channels
- # announcements (13)
- # asami (12)
- # babashka (65)
- # beginners (62)
- # calva (14)
- # cider (8)
- # clara (11)
- # clj-kondo (16)
- # clojure (86)
- # clojure-europe (12)
- # clojure-gamedev (4)
- # clojure-nl (2)
- # clojure-sg (4)
- # clojure-uk (5)
- # clojurescript (206)
- # clojureverse-ops (11)
- # community-development (7)
- # conjure (12)
- # core-async (2)
- # core-logic (13)
- # cursive (49)
- # datalevin (1)
- # datomic (30)
- # deps-new (3)
- # duct (8)
- # events (5)
- # fulcro (10)
- # helix (5)
- # jobs (1)
- # klipse (5)
- # lsp (178)
- # luminus (1)
- # malli (8)
- # meander (3)
- # membrane (13)
- # missionary (1)
- # nrepl (5)
- # other-languages (4)
- # pedestal (4)
- # reitit (3)
- # releases (1)
- # reveal (27)
- # shadow-cljs (89)
- # tools-build (6)
- # tools-deps (11)
- # vim (2)
- # xtdb (64)
I added the above in here: https://github.com/duct-framework/duct/wiki/Modules
Hi folks, I have a module at the top level of my config.edn
and using profiles. For some reason the init-key
does not get called (I have put printlns in there).
Am I missing something w.r.t. to when modules are called?
Yeah this is what I have in resources/duct_hierarchy.edn
{:duct.profile/web [:duct.profile/base]
:duct.profile/core [:duct.profile/base]
:duct.profile/infra [:duct.profile/base]
:duct.profile/routes [:duct.profile/base]
:duct.module/reloadable-routes [:duct/module]}
Is there a way to debug if the module indeed derives that key sorry a bit rusty on these things
Oh found, sorry for the laziness, will test this at the repl -> https://clojuredocs.org/clojure.core/derive
Is that module implemented in a separate library, or is it part of the same code base? Duct needs to load and eval the namespace where the module Integrant multi-method for that key. And by default uses the key name to derive the namespace. If they don't match, then you need to tell Duct/Integrant how to find it, or load and eval the namespace yourself.
it is in the code base but I think I require the namespaces, I will double check but this is is a very good point