crc-org / snc

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

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

Open praveenkumar opened 2 years ago

praveenkumar commented 2 years 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 2 years ago

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

cfergeau commented 2 years 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.