]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Warn when a setting is in the wrong section
authorGeorges Discry <georges@discry.be>
Fri, 15 Sep 2023 20:01:26 +0000 (22:01 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 19 Sep 2023 09:55:22 +0000 (11:55 +0200)
commit74ba4b160f1fa3bbf4291b2585fe5db6a50becbb
treef79d7e054a5bd68fd413c8f2708477d97701abe9
parentb27a558f7242a3ec713e7cca3aa8a5b7ffed514d
Warn when a setting is in the wrong section

Except for the `[Match]` section, a setting can be set in any of the
valid sections because the actual section is ignored. This fuzziness
works because each setting is used in only one section so there is not
conflict.

Instead of silently parsing such a file, a warning is now displayed with
a hint on how to fix it. In the future, this could become an error.
.github/mkosi.conf.d/10-common.conf
mkosi/config.py
tests/test_config.py