devops-works / binenv

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

Unable to read distributions error="unable to fetch distributions: Get \"https://raw.githubusercontent.com/devops-works/binenv/master/distributions/distributions.yaml\": proxyconnect #246

Closed kenni-shin closed 4 months ago

kenni-shin commented 5 months ago

Is there any way don't check or skip distributions.yaml file if have offline system without internet access?

leucos commented 5 months ago

Hello @kenni-shin Can you tell me what command you are executing and what you are trying to achieve ?

kenni-shin commented 5 months ago

Im trying use downloaded binaries in .binenv in docker without .cache/binenv and .config/binenv. Just thinking is there any way to skip fetchDistributions like with env variable or something.

leucos commented 4 months ago

There is no need for the network to be up to use already installed binaries:

$ ping -c1 8.8.8.8
ping: connect: Network is unreachable
$ which yq
/home/user/.binenv/yq
$ yq -V
yq (https://github.com/mikefarah/yq/) version 4.25.1
kenni-shin commented 4 months ago

Very strange ill getting this on binary launch and ill coped only .binenv folder.

2024-02-07T21:26:38Z INF updating distribution list
2024-02-07T21:27:08Z ERR unable to read distributions error="unable to fetch distributions: Get \"[https://raw.githubusercontent.com/devops-works/binenv/master/distributions/distributions.yaml\](https://raw.githubusercontent.com/devops-works/binenv/master/distributions/distributions.yaml/)": proxyconnect tcp: dial tcp 192.168.1.1:8888: i/o timeout"
Error: Process completed with exit code 1.
leucos commented 4 months ago

can you paste the command you are running please ?

kenni-shin commented 4 months ago

I tried to make docker image with preinstalled binaries with command binenv install -l, but coped only /root/.binenv dir. So when have tried to execute binary directly like /root/.binenv/sops and got this error. Solving this problem coping /.config/binenv and .cache/binenv. We can close this issue ill think.