Skip to content

JSON serialization of ImageConfiguration is non-deterministic #249

@allisonkarlitskaya

Description

@allisonkarlitskaya

Sometimes you get

        "Labels": {
            "maintainer": "cockpit-devel@lists.fedorahosted.org",
            "containers.composefs.fsverity": "6c8fb1443b014c416e3ebddd8c75307182661f9093f83d3700499e7601aecb61"
        }

sometimes you get

        "Labels": {
            "containers.composefs.fsverity": "6c8fb1443b014c416e3ebddd8c75307182661f9093f83d3700499e7601aecb61",
            "maintainer": "cockpit-devel@lists.fedorahosted.org"
        }

ie: probably we ought to sort by key before writing the JSON. Or maybe use an inherently-sorted type. Or at least ordered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions