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

Unable to update to the lastest stable release on macOS 11.6 #723

Closed
conradwt opened this issue Oct 14, 2021 · 6 comments
Closed

Unable to update to the lastest stable release on macOS 11.6 #723

conradwt opened this issue Oct 14, 2021 · 6 comments

Comments

@conradwt
Copy link

conradwt commented Oct 14, 2021

When I enter:

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

I'm getting the following:

+-zsh:3> mktemp -d
+-zsh:3> cd /var/folders/vc/sbw5khnx29lfhppt4cmbxqmc0000gn/T/tmp.950Ig17Q
+-zsh:4> OS=+-zsh:4> uname
+-zsh:4> OS=+-zsh:4> tr '[:upper:]' '[:lower:]'
+-zsh:4> OS=darwin 
+-zsh:5> ARCH=+-zsh:5> uname -m
+-zsh:5> ARCH=+-zsh:5> sed -e s/x86_64/amd64/ -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/'
+-zsh:5> ARCH=amd64 
+-zsh:6> curl -fsSLO https://github.com/kubernetes-sigs/krew/releases/latest/download/krew.tar.gz
curl: (22) The requested URL returned error: 404
@DANIELF01
Copy link

For now you can use:

RUN set -x; \ cd "$(mktemp -d)" && \ OS="$(uname | tr '[:upper:]' '[:lower:]')" && \ ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" && \ curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/download/v0.4.1/krew.tar.gz" && \ tar zxvf krew.tar.gz && \ KREW=./krew-"${OS}_${ARCH}" && \ echo $KREW &&\ "$KREW" install krew

It seems like the 0.4.2 doesn't include a krew.tar.gz under it's assets.

@chriskim06
Copy link
Member

ah there's an open PR currently for updating the install instructions after a change was made for releasing separated archives for each platform. if you already had krew installed then the usual kubectl krew upgrade should upgrade it properly. for new installs the instructions will be updated

@conradwt
Copy link
Author

@chriskim06 kubectl krew upgrade does upgrade krew. However, the documentation says that this command would upgrade installed plugins to newer versions. Is this documentation missing from the help option or should there be another option for krew updating itself?

@chriskim06
Copy link
Member

its mentioned in the docs that krew will upgrade itself using that command

Since Krew itself is a plugin also managed through Krew, running the upgrade command will also upgrade your krew setup to the latest version.

if you want to just upgrade krew by itself you can run kubectl krew upgrade krew

@chriskim06
Copy link
Member

the docs should be updated now so going forward new installs of krew following the instructions in the doc should select the correct archive

/close

@k8s-ci-robot
Copy link
Contributor

@chriskim06: Closing this issue.

In response to this:

the docs should be updated now so going forward new installs of krew following the instructions in the doc should select the correct archive

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants