origin: Not working in macOS Monterey
[provide a description of the issue]
Version
oc version v3.10, v3.8 macOS mentorey 12.0.1
Steps To Reproduce
- Just run
oc versionand recieve this issue in screen short
Current Result
Expected Result
oc version works well, and I can do my business job
Additional Information
[try to run $ oc adm diagnostics (or oadm diagnostics) command if possible]
[if you are reporting issue related to builds, provide build logs with BUILD_LOGLEVEL=5]
[consider attaching output of the $ oc get all -o json -n <namespace> command to the issue]
[visit https://docs.openshift.org/latest/welcome/index.html]
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 15 (6 by maintainers)
https://github.com/golang/go/wiki/MacOS12BSDThreadRegisterIssue
I have a hacky “fix” which works for me. Im only using a tiny subset of functionality though (getting tokens for pushing images and a couple of info commands) so not sure if this makes the entire
ocbinary work.Im also on an intel mac so not sure if this will work for arm. docker is used to build all the tools so you will need docker up and running too.
Then patch
hack/lib/build/binaries.shto comment out the go install commandThis will build the binaries for mac and dump them in
_output/local/bin/darwin/ARCHHope that helps!
Not exaclty a fix, but the version you can install with brew (openshift-cli) seems to work fine. I got the same error with this version.
@Themodem thanks for the workaround! After doing
brew install gothen following your steps, I now have an ‘oc’ binary that works.