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

Doesn't install on arm64 #673

Closed
nicholaswilde opened this issue Dec 16, 2020 · 3 comments · Fixed by #689
Closed

Doesn't install on arm64 #673

nicholaswilde opened this issue Dec 16, 2020 · 3 comments · Fixed by #689
Labels
area/distribution Issues or PRs related to distribution and installation kind/bug Categorizes issue or PR as related to a bug. priority/P2 P2 issues or PRs

Comments

@nicholaswilde
Copy link

I tried using krew using the script from the installation documentation on an RPi4.

(
  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

++ mktemp -d
+ cd /tmp/tmp.DXwzAkWdyQ
+ curl -fsSLO https://github.com/kubernetes-sigs/krew/releases/latest/download/krew.tar.gz
+ tar zxvf krew.tar.gz
./LICENSE
./krew-darwin_amd64
./krew-linux_amd64
./krew-linux_arm
./krew-windows_amd64.exe
++ uname
++ tr '[:upper:]' '[:lower:]'
++ uname -m
++ sed -e s/x86_64/amd64/ -e 's/arm.*$/arm/'
+ KREW=./krew-linux_aarch64
+ ./krew-linux_aarch64 install krew
bash: ./krew-linux_aarch64: No such file or directory

I know that there isn't an arm64/aarch64 executable in the release packages, but it does seem to work by manually running ./krew-linux_arm install krew

$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ uname -a
Linux pi-04 5.4.72-v8+ #1356 SMP PREEMPT Thu Oct 22 13:58:52 BST 2020 aarch64 GNU/Linux
@ahmetb
Copy link
Member

ahmetb commented Dec 17, 2020

I suspect we need to throw another -e 's/aarch64/arm/' in the sed command there.

@ahmetb
Copy link
Member

ahmetb commented Jan 28, 2021

/kind bug
/priority p2
/area distribution

@k8s-ci-robot k8s-ci-robot added the area/distribution Issues or PRs related to distribution and installation label Jan 28, 2021
@kubernetes-sigs kubernetes-sigs deleted a comment from k8s-ci-robot Jan 28, 2021
@ahmetb ahmetb added kind/bug Categorizes issue or PR as related to a bug. priority/P2 P2 issues or PRs labels Jan 28, 2021
@ahmetb
Copy link
Member

ahmetb commented Feb 2, 2021

So the sed command mentioned above works, but this has unrevealed another bug.

On an arm64 environment (per go env GOARCH), Krew successfully installs plugins with selector arch: arm however it doesn't install plugins with arch: arm64. So I suspect there's something wrong with how we interpret os/arch pairs on arm64 specifically.

Opening #688 to track.

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 kind/bug Categorizes issue or PR as related to a bug. priority/P2 P2 issues or PRs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants