duct

ts1503 2022-03-22T11:59:03.207089Z

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?

Ferdinand Beyer 2022-03-22T12:58:41.391939Z

The same as other keys:

my.module {:input #ig/ref :some.dependency}

Ferdinand Beyer 2022-03-22T13:01:05.883439Z

AFAIK duct internally adds a :duct.core/requires key to modules to make them depend on profiles

Ferdinand Beyer 2022-03-22T13:01:38.269949Z

You could do the same:

:my.module {:requires #ig/refset ...}

ts1503 2022-03-22T13:09:04.400039Z

interesting. thanks will try to do so