eget icon indicating copy to clipboard operation
eget copied to clipboard

--to ~/bin does not install to $HOME/bin/

Open Dialga opened this issue 1 year ago • 4 comments

For example I tried eget svenstaro/miniserve --to=~/bin expecting miniserve to be installed into the bin folder in $HOME but rather it created a ~ folder in the current directory and renamed miniserve to bin. This is not expected at all since help specifies: --to= move to given location after extracting. meaning move the executable to that folder.

Dialga avatar May 21 '23 14:05 Dialga

Yeah, this seems to be because the shell is not expanding ~ to $HOME, but passing ~ literally to eget

It works for me if you ditch the = and use eget svenstaro/miniserve --to ~/bin

dufferzafar avatar May 22 '23 07:05 dufferzafar

Is there a way for go to expand paths?

Dialga avatar May 27 '23 14:05 Dialga

Something like this could work: https://stackoverflow.com/a/17617721

But, I don't really think this is high value, because such expansions should ideally be handled by the shell.

dufferzafar avatar May 27 '23 15:05 dufferzafar

We already have the internal home package to do this kind of expansion, but I agree I am not sure if we should just leave this to the shell to expand. I guess given that doing the expansion is easy maybe it is worth doing for the to=… case.

zyedidia avatar May 27 '23 18:05 zyedidia