Hello guys.
Found in the Duct sources docstring for method duct.core/fold-modules
saying:
Fold a system map of modules into an Integrant configuration. A module is a
pure function that transforms a configuration map. The modules are traversed
in dependency order and applied to iteratively to a blank map in order to
build the final configuration.
So duct modules could have it’s own dependencies and will be initialized in strict order.
My question how exactly I can define inter module dependencies?The same as other keys:
my.module {:input #ig/ref :some.dependency}AFAIK duct internally adds a :duct.core/requires key to modules to make them depend on profiles
You could do the same:
:my.module {:requires #ig/refset ...}interesting. thanks will try to do so