Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TOML: use
default
profile values by default when another profile is…
… active (#4657) Follow up to runtimeverification/kontrol#825. In Foundry, when parsing TOML config files, values set in a default profile (e.g., `[prove.default]` in `kontrol.toml`) are inherited by other profiles unless they are explicitly overridden in those profiles, which helps avoid redefining shared configuration settings between profiles ([Foundry docs](https://book.getfoundry.sh/config/)). We'd like to support the same behavior in `kontrol.toml`. Similarly to a change made in runtimeverification/kontrol#825 to the `foundry.toml` parsing, this PR enforces reading the values set in both active and `default` profiles and using the default ones for values that are not set in the active profile. This PR also adds a `test_prove_legacy_profiles` test that ensures that both `default` and active profile's values are used. I do realise, however, that this behavior (other profiles inheriting from `default`) is non-standard, so I'd appreciate any feedback on this PR. Maybe it'd be better if I added another parameter in `get_profile` that would enable this behavior only if the function is called by Kontrol?
- Loading branch information