bin icon indicating copy to clipboard operation
bin copied to clipboard

bin unable to update itself in Powershell

Open smajl87 opened this issue 1 year ago • 6 comments

Issue: bin.exe is not able to update itself.

OS: Microsoft Windows 11 Pro (10.0.22631 N/A Build 22631) Shell: Powershell 5.1.22621.2506 & Powershell 7.4.1

PS C:\Users\admin\bin> bin update bin.exe --debug
   • debug logs enabled, version: 0.17.3
commit: 9da887da9ce476a54e25828bad962a1cae2da17c
built at: 2024-01-31T03:39:37Z
built by: goreleaser

   • Config directory is: C:\Users\admin\.bin
   • Download path set to C:\Users\admin\bin
   • Checking updates for C:\Users\admin\bin\bin.exe
   • Getting latest release for marcosnils/bin
   • Found new version v0.17.4 for C:\Users\admin\bin\bin.exe at https://github.com/marcosnils/bin/releases/tag/v0.17.4
   • C:\Users\admin\bin\bin.exe v0.17.3 -> v0.17.4 (https://github.com/marcosnils/bin/releases/tag/v0.17.4)

Do you want to continue? [Y/n] y
   • Getting v0.17.4 release for marcosnils/bin
   • Removing bin_0.17.4_windows_arm64.exe (URL https://api.github.com/repos/marcosnils/bin/releases/assets/155860489) with score 41 lower than 46
   • Keeping bin_0.17.4_windows_amd64.exe (URL https://api.github.com/repos/marcosnils/bin/releases/assets/155860491) with highest score 46
   • Removing bin_0.17.4_windows_386.exe (URL https://api.github.com/repos/marcosnils/bin/releases/assets/155860486) with score 36 lower than 46
   • Removing bin_0.17.4_linux_arm64 (URL https://api.github.com/repos/marcosnils/bin/releases/assets/155860487) with score 6 lower than 46
   • Removing bin_0.17.4_linux_amd64 (URL https://api.github.com/repos/marcosnils/bin/releases/assets/155860488) with score 11 lower than 46
   • Removing bin_0.17.4_linux_386 (URL https://api.github.com/repos/marcosnils/bin/releases/assets/155860485) with score 1 lower than 46
   • Removing bin_0.17.4_darwin_arm64 (URL https://api.github.com/repos/marcosnils/bin/releases/assets/155860493) with score 16 lower than 46
   • Removing bin_0.17.4_darwin_amd64 (URL https://api.github.com/repos/marcosnils/bin/releases/assets/155860492) with score 21 lower than 46
   • Checking binary from https://api.github.com/repos/marcosnils/bin/releases/assets/155860491
   • Starting download of https://api.github.com/repos/marcosnils/bin/releases/assets/155860491
15.15 MiB / 15.15 MiB [----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% 5.97 MiB p/s 3s
   • Overwrite flag set, removing file C:\Users\admin\bin\bin.exe

   ⨯ command failed            error=Error installing binary remove C:\Users\admin\bin\bin.exe: Access is denied.

Expected outcome: bin.exe updated to latest version

smajl87 avatar Mar 22 '24 22:03 smajl87

I have the same issue on Windows 10 Pro, and can confirm that it also occurs in cmd as well.

McPhale avatar Apr 25 '24 19:04 McPhale

hey! thx for reporting. I'll try to get a windows VM to test this out :pray:

marcosnils avatar Apr 25 '24 19:04 marcosnils

Still having the same issue. Any updates on this?

graphixillusion avatar Jul 03 '24 12:07 graphixillusion

Just tried updating to the latest version and this is still occurring :)

McPhale avatar Apr 23 '25 16:04 McPhale

Yes, never fixed for me too. And not just in powershell, in command prompt too

graphixillusion avatar Apr 23 '25 22:04 graphixillusion

Hey! sorry I couldn't get back to this. Have very little time within my hands lately 🙏

marcosnils avatar Apr 23 '25 22:04 marcosnils