crc-org / snc

Single Node Cluster creation scripts for OpenShift 4.x as used by CodeReady Containers
https://crc.dev
Apache License 2.0
100 stars 49 forks source link

oc builds listed on mirror.openshift for arm64 is crashing for M1 #577

Open praveenkumar opened 1 year ago

praveenkumar commented 1 year ago

Somehow https://mirror.openshift.com/pub/openshift-v4/arm64/clients/ocp/4.11.1/openshift-client-mac-arm64-4.11.1.tar.gz is not working on M1

➜  /tmp file oc
oc: Mach-O 64-bit executable arm64
➜  /tmp ./oc -h
[1]    23852 killed     ./oc -h
cfergeau commented 1 year ago

This is https://github.com/openshift/oc/issues/1221

cfergeau commented 1 year ago

Hrm, and this is a silly bug :( https://github.com/openshift/oc/issues/1221#issuecomment-1230542986 Long story short, we can extract a working binary from the cli-artifacts container image.