Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

platform.WantedPlatforms is noisy on macOS #2376

Open
rangoo94 opened this issue Mar 15, 2024 · 5 comments
Open

platform.WantedPlatforms is noisy on macOS #2376

rangoo94 opened this issue Mar 15, 2024 · 5 comments
Labels
kind/bug A defect in an existing functionality (or a PR fixing it)

Comments

@rangoo94
Copy link

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 rangoo94 changed the title Skopeo 1.15.0 - invalid JSON on Mac Silicon, due to error printed Skopeo 1.15.0 - invalid JSON output on Mac Silicon, due to error printed Mar 15, 2024
@TomSweeneyRedHat
Copy link
Member

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

@mtrmac
Copy link
Collaborator

mtrmac commented Mar 15, 2024

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.

@rangoo94
Copy link
Author

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.

@mtrmac
Copy link
Collaborator

mtrmac commented Mar 15, 2024

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

Copy link

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

@mtrmac mtrmac changed the title Skopeo 1.15.0 - invalid JSON output on Mac Silicon, due to error printed platform.WantedPlatforms is noisy on macOS Apr 15, 2024
@mtrmac mtrmac added the kind/bug A defect in an existing functionality (or a PR fixing it) label Apr 15, 2024
@mtrmac mtrmac transferred this issue from containers/skopeo Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A defect in an existing functionality (or a PR fixing it)
Projects
None yet
Development

No branches or pull requests

3 participants