looztra/asdf-k9s

K9s 0.24.10 unable to install

Closed this issue · 3 comments

On May 20th, 2021, K9s version 0.24.10 has released. The naming scheme for the provided archives has changed to include the version number: k9s_<os>_<arch>.tar.gz became k9s_<version>_<os>_<arch>.tar.gz. Following this, asdf can't download the correct file.

$ asdf install k9s 0.24.10
[2021-05-21 12:34:22] INFO: Downloading [k9s] from https://github.com/derailed/k9s/releases/download/v0.24.10/k9s_Linux_x86_64.tar.gz to /tmp/asdf_uzRbtoA7/sub/k9s_Linux_x86_64.tar.gz (install_tool)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100     9  100     9    0     0     32      0 --:--:-- --:--:-- --:--:--    32
[2021-05-21 12:34:22] INFO: Creating bin directory [/home/user/.asdf/installs/k9s/0.24.10/bin] (install_tool)
[2021-05-21 12:34:23] INFO: Cleaning previous binaries if any (install_tool)
[2021-05-21 12:34:23] INFO: Extracting archive (install_tool)
tar: This does not look like a tar archive

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

My installed plugin commit is fff3ad67085177c0b96cff34eb608c05799bf350.

@looztra please take a look when you have time.

According to derailed/k9s#1131 (comment) this is a one-off rather than an intentional change. I'll update the fix to only apply to this one version.

Thanks for merging! I'm closing the issue.