kubernetes-sigs / krew

📦 Find and install kubectl plugins
https://krew.sigs.k8s.io
Apache License 2.0
6.42k stars 369 forks source link

checksum mismatch when installing oidc-login for linux amd64 #763

Closed timblaktu closed 2 years ago

timblaktu commented 2 years ago

After fresh install of krew on Debian 11.3, I get checksum mismatch when installing oidc-login:

tim@DESKTOP-646JHDO:~$ kubectl krew update
Updated the local copy of plugin index.
tim@DESKTOP-646JHDO:~$ kubectl krew search oidc-login
NAME        DESCRIPTION                            INSTALLED
oidc-login  Log in to the OpenID Connect provider  no
tim@DESKTOP-646JHDO:~$ kubectl krew install oidc-login
Updated the local copy of plugin index.
Installing plugin: oidc-login
W0407 07:32:19.100559   26049 install.go:164] failed to install plugin "oidc-login": install failed: failed to unpack into staging dir: failed to unpack the plugin archive: checksum does not match, want: d265388f27a4d7ceaa7cc1a7ed6c0297cc5d04aa7022325a4554e46a6f56cc3c, got c6bd49925efa7e40f92cf6b5e299aa6580e613d02b0759363055f5e351104ef2
failed to install some plugins: [oidc-login]: install failed: failed to unpack into staging dir: failed to unpack the plugin archive: checksum does not match, want: d265388f27a4d7ceaa7cc1a7ed6c0297cc5d04aa7022325a4554e46a6f56cc3c, got c6bd49925efa7e40f92cf6b5e299aa6580e613d02b0759363055f5e351104ef2

This is confirmed manually with:

~/.krew/index/default/plugins/oidc-login.yaml has:

  version: v1.25.1
  platforms:
  - bin: kubelogin
    uri: https://github.com/int128/kubelogin/releases/download/v1.25.1/kubelogin_linux_amd64.zip
    sha256: d265388f27a4d7ceaa7cc1a7ed6c0297cc5d04aa7022325a4554e46a6f56cc3c

but

tim@DESKTOP-646JHDO:~$ wget https://github.com/int128/kubelogin/releases/download/v1.25.1/kubelogin_linux_amd64.zip
...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8426964 (8.0M) [application/octet-stream]
Saving to: ‘kubelogin_linux_amd64.zip.1’

kubelogin_linux_amd64.zip.1        100%[===============================================================>]   8.04M  9.98MB/s    in 0.8s

2022-04-07 07:42:53 (9.98 MB/s) - ‘kubelogin_linux_amd64.zip.1’ saved [8426964/8426964]
tim@DESKTOP-646JHDO:~$ sha256sum kubelogin_linux_amd64.zip
c6bd49925efa7e40f92cf6b5e299aa6580e613d02b0759363055f5e351104ef2  kubelogin_linux_amd64.zip

Did I have a download issue, or is the checksum wrong? Whos' in charge of updating the index?

ahmetb commented 2 years ago

Please file a ticket on oidc-login repo. They may have re-tagged a different release.

timblaktu commented 2 years ago

@ahmetb from what I can see, they have not. Their releases page has the version I downloaded as the most recent. Their .krew.yaml for this latest release (not recent, it's from January) is templated. I will file an issue there.

AnkurSanghi2000 commented 2 weeks ago

I am running into the same issue (Checksum mismatch) for the kubelogin_darwin_arm64.zip file.