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: command not found when use 0.18.0 and 0.19.0-rc1 #192

Closed patsevanton closed 2 years ago

patsevanton commented 2 years ago

Hello! Thanks for binenv. Install 0.18.0 and 0.19.0-rc1

user@homepc:~$ wget -q https://github.com/devops-works/binenv/releases/latest/download/binenv_linux_amd64
wget -q https://github.com/devops-works/binenv/releases/latest/download/checksums.txt
sha256sum  --check --ignore-missing checksums.txt
mv binenv_linux_amd64 binenv
chmod +x binenv
./binenv update
./binenv install binenv
rm binenv
if [[ -n $BASH ]]; then ZESHELL=bash; fi
if [[ -n $ZSH_NAME ]]; then ZESHELL=zsh; fi
echo $ZESHELL
echo 'export PATH=~/.binenv:$PATH' >> ~/.${ZESHELL}rc
echo "source <(binenv completion ${ZESHELL})" >> ~/.${ZESHELL}rc
exec $SHELL
user@homepc:~$ wget -q https://github.com/devops-works/binenv/releases/latest/download/checksums.txt
user@homepc:~$ sha256sum  --check --ignore-missing checksums.txt
binenv_linux_amd64: OK
user@homepc:~$ mv binenv_linux_amd64 binenv
user@homepc:~$ chmod +x binenv
user@homepc:~$ ./binenv update
2022-04-23T21:57:41+06:00 INF retrieving distribution cache from https://raw.githubusercontent.com/devops-works/binenv/develop/distributions/cache.json
2022-04-23T21:57:41+06:00 INF fetched updates for 258 distributions
user@homepc:~$ ./binenv install binenv
2022-04-23T21:57:41+06:00 WRN version for "binenv" not specified; using "0.18.0"
fetching binenv version 0.18.0 100% |
2022-04-23T21:57:57+06:00 INF executing self install
2022-04-23T21:57:57+06:00 INF "binenv" (0.18.0) installed
user@homepc:~$ rm binenv
user@homepc:~$ if [[ -n $BASH ]]; then ZESHELL=bash; fi
user@homepc:~$ if [[ -n $ZSH_NAME ]]; then ZESHELL=zsh; fi
user@homepc:~$ echo $ZESHELL
bash
user@homepc:~$ echo 'export PATH=~/.binenv:$PATH' >> ~/.${ZESHELL}rc
user@homepc:~$ echo "source <(binenv completion ${ZESHELL})" >> ~/.${ZESHELL}rc
user@homepc:~$ exec $SHELL
binenv: command not found

ls -la

-rwxr-xr-x 1 user user 7577600 Apr 23 20:04  binenv
drwxr-x--- 3 user user    4096 Apr 23 22:03 '~'
patsevanton commented 2 years ago

Install 0.17.1

user@homepc:~$ wget -q https://github.com/devops-works/binenv/releases/download/v0.17.1/binenv_linux_amd64
wget -q https://github.com/devops-works/binenv/releases/download/v0.17.1/checksums.txt
sha256sum  --check --ignore-missing checksums.txt
mv binenv_linux_amd64 binenv
chmod +x binenv
./binenv update
./binenv install binenv
rm binenv
if [[ -n $BASH ]]; then ZESHELL=bash; fi
if [[ -n $ZSH_NAME ]]; then ZESHELL=zsh; fi
echo $ZESHELL
echo -e '\nexport PATH=~/.binenv:$PATH' >> ~/.${ZESHELL}rc
echo "source <(binenv completion ${ZESHELL})" >> ~/.${ZESHELL}rc
exec $SHELL
user@homepc:~$ wget -q https://github.com/devops-works/binenv/releases/download/v0.17.1/checksums.txt
user@homepc:~$ sha256sum  --check --ignore-missing checksums.txt
binenv_linux_amd64: OK
user@homepc:~$ mv binenv_linux_amd64 binenv
user@homepc:~$ chmod +x binenv
user@homepc:~$ ./binenv update
2022-04-23T22:07:53+06:00 INF retrieving distribution cache from https://raw.githubusercontent.com/devops-works/binenv/develop/distributions/cache.json
2022-04-23T22:07:54+06:00 INF fetched updates for 258 distributions
user@homepc:~$ ./binenv install binenv
2022-04-23T22:07:54+06:00 WRN version for "binenv" not specified; using "0.18.0"
fetching binenv version 0.18.0 100% |
2022-04-23T22:08:06+06:00 INF executing self install
2022-04-23T22:08:06+06:00 INF "binenv" (0.18.0) installed
user@homepc:~$ rm binenv
user@homepc:~$ if [[ -n $BASH ]]; then ZESHELL=bash; fi
user@homepc:~$ if [[ -n $ZSH_NAME ]]; then ZESHELL=zsh; fi
user@homepc:~$ echo $ZESHELL
bash
user@homepc:~$ echo -e '\nexport PATH=~/.binenv:$PATH' >> ~/.${ZESHELL}rc
user@homepc:~$ echo "source <(binenv completion ${ZESHELL})" >> ~/.${ZESHELL}rc
user@homepc:~$ exec $SHELL
user@homepc:~$
leucos commented 2 years ago

v0.19.0-rc2 is being built in the CI and should fix this issue. sorry for the trouble.

patsevanton commented 2 years ago

Fixed. Thanks!

user@homepc:~$ wget -q https://github.com/devops-works/binenv/releases/download/v0.19.0-rc2/binenv_linux_amd64
wget -q https://github.com/devops-works/binenv/releases/download/v0.19.0-rc2/checksums.txt
sha256sum  --check --ignore-missing checksums.txt
mv binenv_linux_amd64 binenv
chmod +x binenv
./binenv update
./binenv install binenv
rm binenv
if [[ -n $BASH ]]; then ZESHELL=bash; fi
if [[ -n $ZSH_NAME ]]; then ZESHELL=zsh; fi
echo $ZESHELL
echo -e '\nexport PATH=~/.binenv:$PATH' >> ~/.${ZESHELL}rc
echo "source <(binenv completion ${ZESHELL})" >> ~/.${ZESHELL}rc
exec $SHELL
user@homepc:~$ wget -q https://github.com/devops-works/binenv/releases/download/v0.19.0-rc2/checksums.txt
user@homepc:~$ sha256sum  --check --ignore-missing checksums.txt
binenv_linux_amd64: OK
user@homepc:~$ mv binenv_linux_amd64 binenv
user@homepc:~$ chmod +x binenv
user@homepc:~$ ./binenv update
2022-04-24T11:46:01+06:00 INF retrieving distribution cache from https://raw.githubusercontent.com/devops-works/binenv/develop/distributions/cache.json
2022-04-24T11:46:02+06:00 INF fetched updates for 258 distributions
user@homepc:~$ ./binenv install binenv
2022-04-24T11:46:02+06:00 WRN version for "binenv" not specified; using "0.18.0"
fetching binenv version 0.18.0 100% |
2022-04-24T11:46:04+06:00 INF executing self install using bindir /home/user/.binenv/
2022-04-24T11:46:04+06:00 INF "binenv" (0.18.0) installed
user@homepc:~$ rm binenv
user@homepc:~$ if [[ -n $BASH ]]; then ZESHELL=bash; fi
user@homepc:~$ if [[ -n $ZSH_NAME ]]; then ZESHELL=zsh; fi
user@homepc:~$ echo $ZESHELL
bash
user@homepc:~$ echo -e '\nexport PATH=~/.binenv:$PATH' >> ~/.${ZESHELL}rc
user@homepc:~$ echo "source <(binenv completion ${ZESHELL})" >> ~/.${ZESHELL}rc
user@homepc:~$ exec $SHELL
user@homepc:~$