Closed undefinedhuman closed 2 weeks ago
hey! thx for reporting. IIUC your config file is shared with your linux system, correct? are you calling bin install github.com/marcosnils/bin
with that config?
can you try calling bin ensure $bin_path
to see if that works?
Yes I just sync for example my ".config" folder between my linux and macos system - and the file I synced is the ".config/bin/config.json" (pasted above)
bin ensure $bin_path
doesn't yield any output - but also the $bin_path variable is not set on my macos system
Maybe a little more on the procedure I was doing:
bin install github.com/marcosnils/bin
Maybe a little more on the procedure I was doing:
- Installed and configured bin on my Linux system - everything works here
- I synced my configs from my linux system to my macos system (pasted the synced config above)
- Now I tried to download the bin binary from the releases page and tried the command
bin install github.com/marcosnils/bin
ok, perfect. This is enough for reproducing.
bin ensure $bin_path
doesn't yield any output - but also the $bin_path variable is not set on my macos system
what I meant by this is bin ensure $HOME/.local/bin/bin
.
Yes also after installing bin via bin - the binary is placed under ~/.local/bin/bin - downloading other binaries also work but all off them throw the reported error
bin ensure $HOME/.local/bin
⨯ command failed error=binary path /Users/REDACTED/.local/bin not found
do you have the $HOME/.local/bin directory created in your new system? AFAIK that's generally not a default dir in MacOS so you'll probably have to create it manually :pray:
Ah yes sorry - this one is also synced/created manually sorry for that - but I tried the installation only afterwards
bin ensure $HOME/.local/bin
I think you missed another bin
here, it should be bin ensure $HOME/.local/bin/bin
. LMK if that works :pray:
Unfortunately also doesn't work:
bin ensure $HOME/.local/bin/bin
⨯ command failed error=binary path /Users/REDACTED/.local/bin/bin not found
Unfortunately also doesn't work:
Thx. I assume /Users/REDACTED/.local/bin/bin
actually exists, correct? That's definitely odd :thinking:
Yes it exists - Owner + Permission should also be correct - I assume as bin cannot write config it has some conflicts maybe?
Yes it exists - Owner + Permission should also be correct - I assume as bin cannot write config it has some conflicts maybe?
oh, I think I know that the issue is. It's something that I'm currently fixing for the new release. If you check your bin config.json file, you'll notice that the path
field for the binaries currently have your linux absolute path (which doesn't exist in mac).
If you replace the absolute paths manually in your config.json to $HOME/.local/bin/$binary_name` that will solve your issue.
Actually my config.json just looks like this:
{
"default_path": "$HOME/.local/bin"
}
Is there maybe another location for the config which might be loaded first? - I already looked at my logical place:
~/.bin/config.json
- but nothing
Is there maybe another location for the config which might be loaded first? - I already looked at my logical place:
oh! I thought you copied the config file from other systems where you have some other binaries install. I see the issue now. Could you change the config as follows and try again?
{
"default_path": "$HOME/.local/bin",
"bins": {}
}
^ this is definitely a bug that's easy to address :pray:
Yes adding the empty map fixed it :) - I propably didn't sync after installed other bins - sorry for that - just copied the basic config
Thank you very much!
fixed and released in v0.17.6
Hi there,
I downloaded bin from the releases page on my System (Arm based) - and tried the install command to let bin manage itself:
As I am guessing, this has something to do with my config (I have a second system (Linux)) that I share my dot files with:
File: ~/.config/bin/config.json
Any help is much appreciated, if you need more information, please let me know!