basho / cuttlefish

never lose your childlike sense of wonder baby cuttlefish, promise me?
Apache License 2.0
205 stars 124 forks source link

Priority order seems to be the wrong way around #70

Closed Licenser closed 10 years ago

Licenser commented 10 years ago

in my tests a 01- file overwrites a 00- file and a 99- one overwrites a 01- one.

Licenser commented 10 years ago

To make this more interesting:

00.schema

01.schema

99.schema (its the same as 00)

Generate config it looks like:

setting_form_00 = bla
setting_form_01 = blubb

The expected value from setting_form_01 would be bla since setting_form_00 should over write it. Sad story, it's blubber.

More experiment!

Remove 00.schema (but leave the generated config). Outcome is bla what why?

Regenerating the config with only 01 and 99 reverses the order so it makes it look like:

setting_form_01 = blubb
setting_form_00 = bla
joedevivo commented 10 years ago

covered in #73, closing