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

Failed to install on Apple Silicon #686

Closed
zephyrpathsofglory opened this issue Jan 28, 2021 · 1 comment · Fixed by #693
Closed

Failed to install on Apple Silicon #686

zephyrpathsofglory opened this issue Jan 28, 2021 · 1 comment · Fixed by #693
Labels
area/distribution Issues or PRs related to distribution and installation area/platform/mac macOS related issues kind/bug Categorizes issue or PR as related to a bug. priority/P1 P1 issues or PRs

Comments

@zephyrpathsofglory
Copy link

I tried to install krew using the script from the installation documentation on an Apple Silicon.

(
  set -x; cd "$(mktemp -d)" &&
  curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/krew.tar.gz" &&
  tar zxvf krew.tar.gz &&
  KREW=./krew-"$(uname | tr '[:upper:]' '[:lower:]')_$(uname -m | sed -e 's/x86_64/amd64/' -e 's/arm.*$/arm/')" &&
  "$KREW" install krew
)

Output

+-zsh:21> mktemp -d
+-zsh:21> cd /var/folders/k6/swv_sxmx2810__qbn27864sh0000gn/T/tmp.TqCOwwsk
+-zsh:22> curl -fsSLO https://github.com/kubernetes-sigs/krew/releases/latest/download/krew.tar.gz
+-zsh:23> tar zxvf krew.tar.gz
x ./LICENSE
x ./krew-darwin_amd64
x ./krew-linux_amd64
x ./krew-linux_arm
x ./krew-windows_amd64.exe
+-zsh:24> KREW=+-zsh:24> uname
+-zsh:24> KREW=+-zsh:24> tr '[:upper:]' '[:lower:]'
+-zsh:24> KREW=+-zsh:24> uname -m
+-zsh:24> KREW=+-zsh:24> sed -e s/x86_64/amd64/ -e 's/arm.*$/arm/'
+-zsh:24> KREW=./krew-darwin_arm
+-zsh:25> ./krew-darwin_arm install krew
zsh: no such file or directory: ./krew-darwin_arm

Can we support Apple Silicon, or is there any workaround to install it on Apple Silicon?

@ahmetb
Copy link
Member

ahmetb commented Jan 28, 2021

Similar to #673 but in this case we’re missing the darwin/arm64 in the build matrix. I suspect we’ll contact you soon for testing once we have a fix.

/kind bug
/priority p1

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. priority/P1 P1 issues or PRs labels Jan 28, 2021
@ahmetb ahmetb added area/distribution Issues or PRs related to distribution and installation area/platform/mac macOS related issues labels Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/distribution Issues or PRs related to distribution and installation area/platform/mac macOS related issues kind/bug Categorizes issue or PR as related to a bug. priority/P1 P1 issues or PRs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants