bricolages / bricolage

AWS-oriented Data Warehouse Framework
114 stars 20 forks source link

defaultsを全体上書きではなくマージにする #166

Open aamine opened 2 years ago

aamine commented 2 years ago

defaultsを例えばconfig/variable.ymlとconfig/production/variable.ymlの両方で定義していると、config/production/variable.ymlのdefaultsだけが採用されて(全部上書きして)有効になってしまう。これはトップレベルの変数単位で上書きしているから。しかしdefaultsは変数ではない(← すでになんか変なことが起こっている……)ので、defaults Hashのエントリ単位で上書きすべき。