devops-works / binenv

One binary to rule them all. Manage all those pesky binaries (kubectl, helm, terraform, ...) easily.
MIT License
375 stars 44 forks source link

Can't install k9s on Ubuntu amd64, changed release link #229

Closed rsuslov closed 1 year ago

rsuslov commented 1 year ago

release link has been changed from - https://github.com/derailed/k9s/releases/download/v0.27.2/k9s_Linux_x86_64.tar.gz to - https://github.com/derailed/k9s/releases/download/v0.27.2/k9s_Linux_amd64.tar.gz Please correct it, tnx.

leucos commented 1 year ago

Sorry but this has been fixed already #226 and #228

binenv update is your friend

$ binenv install k9s
2023-02-12T09:53:08+01:00 WRN version for "k9s" not specified; using "0.27.2"
fetching k9s version 0.27.2 100% |███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (17/17 MB, 4.989 MB/s)        
2023-02-12T09:53:13+01:00 INF "k9s" (0.27.2) installed
EnochTheWise commented 1 year ago

Reproduce:

$ rm ~/.config/binenv/distributions.yaml
$ binenv update -a
2023-02-13T15:39:12+07:00 INF updating distribution list
2023-02-13T15:39:12+07:00 INF updating distribution list
2023-02-13T15:39:12+07:00 INF retrieving distribution cache from https://raw.githubusercontent.com/devops-works/binenv/develop/distributions/cache.json
2023-02-13T15:39:12+07:00 INF fetched updates for 278 distributions
$ binenv install k9s
2023-02-13T15:39:58+07:00 WRN version for "k9s" not specified; using "0.27.2"
2023-02-13T15:39:59+07:00 ERR unable to install "k9s" (0.27.2) error="unable to download binary at https://github.com/derailed/k9s/releases/download/v0.27.2/k9s_Linux_x86_64.tar.gz: 404 Not Found"

k9s section in distributions.yaml:

  k9s:
    description: Kubernetes CLI To Manage Your Clusters In Style!
    url: https://github.com/derailed/k9s/
    map:
      amd64: x86_64
      linux: Linux
      darwin: Darwin
    list:
      type: github-releases
      url: https://api.github.com/repos/derailed/k9s/releases
    fetch:
      # for v0.24.10:
      # url: https://github.com/derailed/k9s/releases/download/v{{ .Version }}/k9s_v{{ .Version }}_{{ .OS }}_{{ .Arch }}.tar.gz
      url: https://github.com/derailed/k9s/releases/download/v{{ .Version }}/k9s_{{ .OS }}_{{ .Arch }}.tar.gz
    install:
      type: tgz
      binaries:
        - k9s

if remove the line: amd64: x86_64 everything works as it should

leucos commented 1 year ago

Can you try again please ?

EnochTheWise commented 1 year ago

everything is fine now 8)