flamingo icon indicating copy to clipboard operation
flamingo copied to clipboard

DefaultConfig overwrites config*.yml settings

Open mkrill opened this issue 2 years ago • 0 comments

DefaultConfig() settings are loaded for every child config area: https://github.com/i-love-flamingo/flamingo/blob/4227815b1ec86aba881c0c1c74d6f0f9b3771ca6/framework/config/area.go#L234

Doing so, a DefaultConfig defined in a Flamingo module loaded for a child area overwrites config values set in a root config*.yml file. IMO, the DefaultConfig() should only loaded before loading config values set explicitly in config*.yml files.

This issue was already discussed with @SchiffFlieger . Details can also be discussed with him.

mkrill avatar May 23 '22 08:05 mkrill