Skip to content

we should support extra configs #1929

Closed

Description

@zackees

see this

#1928

Activity

  1. zackees commented on Nov 6, 2026

    @zackees
    MemberAuthor

    Implemented on main in #1930 (cb3693c3): [platformio] extra_configs is now merged, not refused.

    • crates/fbuild-config/src/ini_parser/extra_configs.rs resolves each entry against the directory holding platformio.ini, expands shell-style wildcards (sorted, so "later wins" is deterministic) and merges the parsed sections over the base before env resolution — so extra [env:*] sections, base [env] inheritance and ${...} substitution all see the merged view.
    • Refused rather than approximated: a missing file, a wildcard matching no file, an extra file that declares extra_configs again (PlatformIO merges the option but never re-processes it) and a list resolving back to platformio.ini.
    • Tests follow PlatformIO's own documented example (cargo test -p fbuild-config --lib -> 249 passed / 0 failed / 1 ignored; 15 tests in tests_extra_configs.rs), and docs/reference/platformio-ini.md documents the merge contract.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions