Skip to content

fix: support repeated TOML tables in extract templates #511

Description

@randlee

Reproduction\n\nRun:\n\n sc-compose extract --format toml --json publish-artifacts.toml.j2 release/publish-artifacts.toml\n\nwhere the template uses repeated TOML tables generated by Jinja loops, such as crates and wheels.\n\nCurrent result:\n\n ERR_EXTRACT_TEMPLATE_UNSUPPORTED: TOML extraction does not support Jinja statements or comments\n\n## Expected\n\n recovers a JSON object from an equivalent template/output pair, including repeated TOML tables as arrays and scalar fields in each table.\n\n## Acceptance criteria\n\n- Supports Jinja control statements needed for repeated TOML table blocks.\n- Recovers repeated tables into JSON arrays.\n- Covers crate and wheel-style tables in automated tests.\n- Emits a precise diagnostic only for genuinely non-invertible template constructs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions