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

krew installation not working on Macos #27

Closed
jheyduk opened this issue Apr 15, 2024 · 1 comment · Fixed by #28
Closed

krew installation not working on Macos #27

jheyduk opened this issue Apr 15, 2024 · 1 comment · Fixed by #28

Comments

@jheyduk
Copy link
Contributor

jheyduk commented Apr 15, 2024

1. Minimal reproduce step (Required)

kubectl krew install kubectl-kcl/kubectl-kcl

2. What did you expect to see? (Required)

Installation successful

3. What did you see instead (Required)

Updated the local copy of plugin index.
Updated the local copy of plugin index "kubectl-kcl".
Installing plugin: kubectl-kcl
W0415 11:43:01.188678 68348 install.go:164] failed to install plugin "kubectl-kcl": install failed: failed to unpack into staging dir: failed to unpack the plugin archive: failed to obtain plugin archive: failed to download "https://github.com/kcl-lang/kubectl-kcl/releases/download/v0.5.0/kubectl-kcl-darwin-amd64.tar.gz", status code 404
failed to install some plugins: [kubectl-kcl]: install failed: failed to unpack into staging dir: failed to unpack the plugin archive: failed to obtain plugin archive: failed to download "https://github.com/kcl-lang/kubectl-kcl/releases/download/v0.5.0/kubectl-kcl-darwin-amd64.tar.gz", status code 404

4. Solution

The files are named differently. It needs to be kubectl-kcl-macos-amd64.tar.gz in my case.

Please fix it in builds or rename the binaries in krew-index-file. Thanks!

@Peefy
Copy link
Contributor

Peefy commented Apr 15, 2024

Thank you! I've opened a PR to fix this #28

@Peefy Peefy closed this as completed in #28 Apr 15, 2024
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

Successfully merging a pull request may close this issue.

2 participants