Skip to content

platform.WantedPlatforms is noisy on macOS #2376

@rangoo94

Description

@rangoo94

After upgrading to v1.15.0, the Skopeo attaches an error to top line.

$ skopeo inspect --override-os linux --config docker://busybox:1.36.1
ERRO[0001] Couldn't get cpu architecture: getCPUInfo for OS darwin not implemented
{
    "created": "2023-05-18T22:34:17Z",
    "architecture": "arm64",
    "os": "linux",
    "variant": "v8",
    "config": {
        "Cmd": [
            "sh"
        ]
    },
    "rootfs": {
        "type": "layers",
        "diff_ids": [
            "sha256:3c4bc35c677d052e8ce865edea845689bf92fe12482683243d74f93fb690b893"
        ]
    },
    "history": [
        {
            "created": "2023-05-18T22:34:17Z",
            "created_by": "BusyBox 1.36.1 (glibc), Debian 12"
        }
    ]
}

Because of that, it's not possible to parse it as JSON.

Metadata

Metadata

Assignees

No one assigned

    Labels

    jirakind/bugA defect in an existing functionality (or a PR fixing it)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions