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

`binenv -l` fails to find one of the dependencies #92

Closed leucos closed 3 years ago

leucos commented 3 years ago
$ cat .binenv.lock 
#helm: default
helm=3.4.2
#helmfile: default
helmfile=0.135.0
#kubectl: default
kubectl=1.19.3
#sops: default
sops=3.6.1
$ binenv -v install -l
2021-04-01T13:50:48+02:00 DBG will use "helm" (3.4.2) to satisfy constraint "helm=3.4.2"
2021-04-01T13:50:48+02:00 DBG will use "helmfile" (0.135.0) to satisfy constraint "helmfile=0.135.0"
2021-04-01T13:50:48+02:00 WRN no available versions found for "kubectl". Please run "binenv update kubectl".
2021-04-01T13:50:48+02:00 DBG will use "sops" (3.6.1) to satisfy constraint "sops=3.6.1"
$ binenv install kubectl
2021-04-01T13:49:18+02:00 WRN version for "kubectl" not specified; using "1.20.4"
2021-04-01T13:49:18+02:00 WRN version "1.20.4" already installed for "kubectl"
cleming commented 3 years ago

here, it happens when the release is no longer available on GH

leucos commented 3 years ago

If version is changed to 1.20.4 it works. @Cleming reported that this is due to the requested version not being available in releases anymore.

leucos commented 3 years ago

Confirmed that it works properly with a squiggly operator, e.g. kubectl~>1.19.0