marcosnils / bin

Effortless binary manager
MIT License
712 stars 47 forks source link

bin update fails (error=binary path not found) #190

Closed einarpersson closed 8 months ago

einarpersson commented 8 months ago

Hi! I am new here, and I'm very excited by this little tool. I am using Obtainium on Android which is similar for that platform.

Anyway, everthing seems to work so far, exceeept

❯ bin update aichat --debug
   • debug logs enabled, version: 0.17.3
commit: 9da887da9ce476a54e25828bad962a1cae2da17c
built at: 2024-01-31T03:39:37Z
built by: goreleaser

   • Config directory is: /home/einar/config/bin
   • Download path set to $HOME/.local/bin
   ⨯ command failed            error=binary path /home/einar/aichat not found

I don't understand why it would think it is in /home/einar/aichat. It looks like a bug to be (because my config is alright, yes?)

{
    "default_path": "$HOME/.local/bin",
    "bins": {
        "$HOME/.local/bin/aichat": {
            "path": "$HOME/.local/bin/aichat",
            "remote_name": "aichat",
            "version": "v0.14.0",
            "hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "url": "https://github.com/sigoden/aichat",
            "provider": "github",
            "package_path": "aichat"
        },
        "$HOME/.local/bin/bin": {
            "path": "$HOME/.local/bin/bin",
            "remote_name": "bin",
            "version": "v0.17.3",
            "hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "url": "github.com/marcosnils/bin",
            "provider": "github",
            "package_path": ""
        }
    }
}

Thanks!

marcosnils commented 8 months ago

Hey! thx for reporting this. Should be fixed in v0.17.4. Let me know in case it doesn't work as you're expecting.

Cheers!

einarpersson commented 8 months ago

Works! And it was a great experience to update bin using bin for the first time ;)