Fork me on GitHub
#duct
<
2019-01-23
>
lambder13:01:54

hi, I'm using duct/core 6.2.0

lambder13:01:20

I'm calling duct/prep with custom readers.

lambder13:01:15

The readers work fine for the config passed to duct/prep unless it has includes.

lambder13:01:00

it looks like duct.core/apply-includes is not passing the custom readers given to duct/prep

lambder13:01:46

What would be the solution to have the custom readers working with the configs including other ones?

lambder13:01:21

clojure.core/eval                        core.clj: 3206
                                                              ...                                      
                      droit.looking-glass.populator.core/eval5173                       REPL Input     
                                                              ...                                      
droit.looking-glass.populator.populator-duct-config-test/eval5185  populator_duct_config_test.clj:   25
                                                   duct.core/prep                        core.clj:  144
                                                   duct.core/prep                        core.clj:  147
                                         duct.core/apply-includes                        core.clj:   97
                                          duct.core/load-includes                        core.clj:   94
                                                clojure.core/mapv                        core.clj: 6823
                                              clojure.core/reduce                        core.clj: 6747
                                                              ...                                      
                                             clojure.core/mapv/fn                        core.clj: 6832
                                       duct.core/load-includes/fn                        core.clj:   94
                                   duct.core/load-config-resource                        core.clj:   91
                                                              ...                                      
                                          clojure.core/memoize/fn                        core.clj: 6273
                                               clojure.core/apply                        core.clj:  657
                                                              ...                                      
                                                duct.core/prep/fn                        core.clj:  147
                                            duct.core/read-config                        core.clj:   81
                                       integrant.core/read-string                       core.cljc:  111
                                          clojure.edn/read-string                         edn.clj:   46

iku00088808:01:33

@U1Z1M77M5 One thing is duct 0.7.0 has dramatically changed the behavior of include, so I suggest upgrading first?

lambder10:01:24

https://github.com/duct-framework/core/blob/master/README.md is still not updated to 0.7.0. How do I prepare config etc in the new version. Are there any newer docs?