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

helm not installing using latest binenv #243

Closed ichait-bgl closed 1 year ago

ichait-bgl commented 1 year ago

Hi there, Normally binenv installs applications to ~/.binenv/binaries Using the latest release v0.19.10 (and v0.19.9), the helm folder is empty, despite their being no visible errors. Using v0.19.8 works fine (as can be seen below).

.binenv.lock

kubectl>=1.24.10
helm>=3.10

Dockerfile

FROM alpine:latest as binaries
WORKDIR /tmp
ADD .binenv.lock /tmp/.binenv.lock
RUN wget -q https://github.com/devops-works/binenv/releases/latest/download/binenv_linux_amd64 && \
    mv binenv_linux_amd64 binenv && \
    chmod +x binenv && \
    ./binenv update && \
    ./binenv install -l 

ENTRYPOINT ["/bin/sh"]

binenv Output

Sending build context to Docker daemon  3.584kB
Step 1/6 : FROM ....com/base/alpine-aws-cli as installer
 ---> a3d4a99ce392
Step 2/6 : FROM alpine:latest as binaries
 ---> 8ca4688f4f35
Step 3/6 : WORKDIR /tmp
 ---> Running in 8e987a1772f5
Removing intermediate container 8e987a1772f5
 ---> 3c6e14d2635a
Step 4/6 : ADD .binenv.lock /tmp/.binenv.lock
 ---> 9f6ee13fc5e0
Step 5/6 : RUN wget -q https://github.com/devops-works/binenv/releases/latest/download/binenv_linux_amd64 &&     mv binenv_linux_amd64 binenv &&     chmod +x binenv &&     ./binenv update &&     ./binenv install -l
 ---> Running in d0596f96f9a0
2023-10-03T00:46:19Z INF updating distribution list
2023-10-03T00:46:19Z INF retrieving distribution cache from https://raw.githubusercontent.com/devops-works/binenv/develop/distributions/cache.json
2023-10-03T00:46:19Z INF fetched updates for 285 distributions
2023-10-03T00:46:19Z WRN installing "kubectl" (1.28.2) to satisfy constraint "kubectl>=1.24.10"
fetching kubectl version 1.28.2 100% |█████████| (48/48 MB, 9.070 MB/s)        
2023-10-03T00:46:25Z WRN installing "helm" (3.12.3) to satisfy constraint "helm>=3.10"
fetching helm version 3.12.3 100% |███████████| (15/15 MB, 11.162 MB/s)        
Removing intermediate container d0596f96f9a0
 ---> a3c095ccc657
Step 6/6 : ENTRYPOINT ["/bin/sh"]
 ---> Running in 4b6586c14d62
Removing intermediate container 4b6586c14d62
 ---> 9953224a2756
Successfully built 9953224a2756

Using v0.19.10

~/.binenv/binaries # ls -al
total 16
drwxr-x---    4 root     root          4096 Oct  3 00:23 .
drwxr-x---    3 root     root          4096 Oct  3 00:22 ..
drwxr-x---    2 root     root          4096 Oct  3 00:23 helm
drwxr-x---    2 root     root          4096 Oct  3 00:22 kubectl
~/.binenv/binaries # ls helm
~/.binenv/binaries # ls kubectl
1.28.2
~/.binenv/binaries # 

Using v0.19.8

~/.binenv/binaries # ls -al
total 16
drwxr-x---    4 root     root          4096 Oct  3 00:21 .
drwxr-x---    3 root     root          4096 Oct  3 00:21 ..
drwxr-x---    2 root     root          4096 Oct  3 00:21 helm
drwxr-x---    2 root     root          4096 Oct  3 00:21 kubectl
~/.binenv/binaries # ls helm
3.12.3
~/.binenv/binaries # ls kubectl
1.28.2
~/.binenv/binaries #

Any help is much appreciated!

leucos commented 1 year ago

@ichait-bgl I am looking into this. This issue has been introduced in v0.19.9 I guess.

In the meantime, you can use https://github.com/devops-works/binenv/releases/tag/v0.19.8 if you wish so you're not stuck waiting for a fix.

Thanks for the report, will be back soon.

ichait-bgl commented 1 year ago

@leucos - Thanks in advance!

I didn't mention clearly in the main issue, that I rolled back to v0.19.8 and it works fine. I will update my original note.

leucos commented 1 year ago

@ichait-bgl should be fine now after a binenv update --distributions

ichait-bgl commented 1 year ago

Thanks @leucos ! Will test and confirm soon.

ichait-bgl commented 1 year ago

Thanks @leucos , can confirm it is working now! Much appreciated!