devops-works / binenv

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

Can't install `argocd` cli #189

Closed danielllek closed 2 years ago

danielllek commented 2 years ago

Hi,

something strange is happening - argocd cli is visible in versions, tough it can't be installed.

$ binenv version
binenv version 0.18.0 (built 2022-03-16T22:29:36Z)

$ binenv update
2022-03-22T21:55:09+01:00 INF retrieving distribution cache from https://raw.githubusercontent.com/devops-works/binenv/develop/distributions/cache.json
2022-03-22T21:55:09+01:00 INF fetched updates for 256 distributions

$ binenv versions |grep argocd
argocd: 2.3.1 2.3.0 2.3.0-rc5 .......................

$ binenv search argocd
$

$ binenv install argocd
2022-03-22T21:55:21+01:00 ERR unable to install "argocd" () error="no fetcher found for \"argocd\""

Any ideas where's the problem? I can install other tools without problems.

leucos commented 2 years ago

Weird. I can not reproduce. Could you please show me the outputs of:

After this, you can try:binenv update --distributions and try again to install argocd.

Thanks & good luck !

danielllek commented 2 years ago

Thanks for quick reply, installation works after binenv update --distributions :)

Here are cmds with outputs you asked for:

$ md5sum ~/.config/binenv/distributions.yaml
2dd42470d789a6cbbeaf20bfb102cc36 

$ grep -A12 "argocd:" ~/.config/binenv/distributions.yaml
$

$ binenv update --distributions 
2022-03-23T17:47:40+01:00 INF updating distribution list

$ grep -A12 "argocd:" ~/.config/binenv/distributions.yaml
  argocd:
    description: Declarative continuous deployment for Kubernetes.
    list:
      type: github-releases
      url: https://api.github.com/repos/argoproj/argo-cd/releases
    url: https://github.com/argoproj/argo-cd/
    fetch:
      url: https://github.com/argoproj/argo-cd/releases/download/v{{ .Version }}/argocd-{{ .OS }}-{{ .Arch }}
    install:
      type: direct
      binaries:
        - argocd

$ binenv install argocd
2022-03-23T17:47:48+01:00 WRN version for "argocd" not specified; using "2.3.1"
fetching argocd version 2.3.1 100% ....
leucos commented 2 years ago

Awesome, thanks a lot ! I guess you had a very old distributions.yaml file.

argocd has been introduced in binenv 15 months ago; could your distribution.yml be that old ?

danielllek commented 2 years ago

It could, I've started using binenv when it had huge problems doing update (afair some performance problem on hosting side) :) Long ago, but don't remember exactly when.

leucos commented 2 years ago

Ok. thanks for the report. Good to hear that this is solved.