marcosnils / bin

Effortless binary manager
MIT License
640 stars 44 forks source link

restic - installation error, file exists #160

Open dR3b opened 1 year ago

dR3b commented 1 year ago

I tried to install restic with bin but I get the following error:

» bin install github.com/restic/restic
   • Getting latest release for restic/restic
   • Starting download of https://api.github.com/repos/restic/restic/releases/assets/93637820
7.49 MiB / 7.49 MiB [-------------------------------------------------------] 100.00% 26.39 MiB p/s 0s
   ⨯ command failed            error=error installing binary: open /home/USER/bin2: file exists
bin version 0.16.2
commit: d1213c11e63483174ed95308c9eb6372bb9b16e9
built at: 2023-02-21T13:11:19Z
built by: goreleaser

Issues: https://github.com/marcosnils/bin/issues/117 https://github.com/marcosnils/bin/pull/81

marcosnils commented 1 year ago

it should work with bin install github.com/restic/restic /home/USER/restic. I'll leave this issue open so we handle this specifically for bz2 files since the filename handling should be inferred differently than the other formats.

dR3b commented 1 year ago

Perfect thanks!