marcosnils / bin

Effortless binary manager
MIT License
685 stars 46 forks source link

Unable to set binary download directory #111

Closed akhan4u closed 2 years ago

akhan4u commented 2 years ago

After the recent latest version upgrade of the bin to 0.9.0. I am unable to set the default download directory.

bin version 0.9.0
commit: eb703a2d8135fe5e69dab690d1207c60c74b9109
built at: 2021-10-24T19:35:45Z
built by: goreleaser

The output of bin update

❯ bin update
   • Could not find a PATH directory automatically, falling back to manual selection

Please specify a download directory: /usr/local/bin
   • Could not find a PATH directory automatically, falling back to manual selection

Please specify a download directory: /bin
   • Could not find a PATH directory automatically, falling back to manual selection

Please specify a download directory: /sbin 
   • Could not find a PATH directory automatically, falling back to manual selection

Please specify a download directory: /usr/local/bin
   • Could not find a PATH directory automatically, falling back to manual selection

Please specify a download directory: /tmp
   • Could not find a PATH directory automatically, falling back to manual selection

Please specify a download directory: ^C

Output of bin ensure

❯ bin ensure
   • Could not find a PATH directory automatically, falling back to manual selection

Please specify a download directory: /usr/local/bin
   • Could not find a PATH directory automatically, falling back to manual selection

Please specify a download directory: ^C

Is there a flag that needs to be set in .bin/config.json or does it require some environment variable??

My underlying system is a vagrant box

NAME="Ubuntu"
VERSION="21.04 (Hirsute Hippo)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 21.04"
VERSION_ID="21.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=hirsute
UBUNTU_CODENAME=hirsute
pendulm commented 2 years ago

confirm this. version 0.8. is OK

akhan4u commented 2 years ago

Yep, bin 0.8.0 works fine.

❯ bin --version
bin version 0.8.0
commit: a638c4aae4dca8eb6a339bfd40af4f8dca7b5231
built at: 2021-06-23T09:19:57Z
built by: goreleaser

❯ bin update
   • /usr/local/bin/terraformer-aws 0.8.17 -> 0.8.18 (https://github.com/GoogleCloudPlatform/terraformer/releases/tag/0.8.18)
   • /usr/local/bin/terraformer-google 0.8.17 -> 0.8.18 (https://github.com/GoogleCloudPlatform/terraformer/releases/tag/0.8.18)
   • /usr/local/bin/terraformer-azure 0.8.17 -> 0.8.18 (https://github.com/GoogleCloudPlatform/terraformer/releases/tag/0.8.18)

Do you want to continue? [Y/n] n
   ⨯ command failed            error=Command aborted
marcosnils commented 2 years ago

:wave: my bad!

Crafted a release yesterday and got lazy testing manually something that doesn't have tests. I'm crafting a new release now. Should be available in a few minutes.