duct

roklenarcic 2021-03-17T16:35:04.001700Z

Hey there. I have some code from 0.6.x version of duct, which uses `

:duct.core/include ["config.edn"]
in dev.edn . I upgraded to 0.8.0 and this stopped working? How can I merge configurations from multiple sources?

kwrooijen 2021-03-17T16:58:43.001800Z

Maybe take a look at profiles https://github.com/duct-framework/duct/wiki/Configuration#duct-base-profiles-and-modules

kwrooijen 2021-03-17T17:00:53.002Z

I don't think the wiki mentions it, but you can create your own profiles

roklenarcic 2021-03-17T18:16:16.002200Z

The profiles are a bit inverted in terms of control. I have a core library and project that uses it. I would like to have a partial config in the library and then in the project I;’d like to import that config and fill in some gaps… I don’t know if profiles are great for this… I guess I can always manually merge edns

kwrooijen 2021-03-17T18:33:58.002400Z

Profiles allow you to merge any edn resources into your:duct/core config. Sounds like that's what you need but maybe I'm misunderstanding

roklenarcic 2021-03-17T19:54:50.002600Z

I want the library’s version be the base and then the web server config to be an override, but using profiles, that would make the web server config a profile I must always enable?

kwrooijen 2021-03-17T20:13:42.002800Z

Yeah that sounds like an edge case. Not sure how you'd resolve that