image icon indicating copy to clipboard operation
image copied to clipboard

platform.WantedPlatforms is noisy on macOS

Open rangoo94 opened this issue 1 year ago • 5 comments

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.

rangoo94 avatar Mar 15 '24 12:03 rangoo94

@rangoo94 thanks for the report. Can you tell us what type of host you were running skopeo on please?

TomSweeneyRedHat avatar Mar 15 '24 15:03 TomSweeneyRedHat

Thanks for reaching out. That warning is output to standard error, which shouldn’t impede parsing the standard output at all.

I do agree it’s probably unnecessarily noisy.

mtrmac avatar Mar 15 '24 15:03 mtrmac

Hi @TomSweeneyRedHat,

It's MacBook Pro M2 Max (Apple Silicon):

$ uname -a
Darwin DawidRusnakArm.RT-AX86U 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:21:53 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6020 arm64

@mtrmac, thanks, I didn't notice initially that it's stderr - it will help me to handle that.

On the other side, should this issue happen at all? Based on i.e. this issue I assume it could be related to outdated client used in Skopeo.

rangoo94 avatar Mar 15 '24 15:03 rangoo94

No, this is not old containerd. There is some shared history but that’s no longer relevant here.

mtrmac avatar Mar 15 '24 19:03 mtrmac

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar Apr 15 '24 00:04 github-actions[bot]

#2411 will fix this.

mtrmac avatar May 13 '24 16:05 mtrmac

you can also add option --override-arch arm64 to avoid top-line error

sedletsky-f5 avatar Jun 13 '24 17:06 sedletsky-f5