Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Dialga opened this issue May 21, 2023 · 4 comments
Closed

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

Dialga opened this issue May 21, 2023 · 4 comments

Comments

@Dialga
Copy link

Dialga commented May 21, 2023

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.

@dufferzafar
Copy link
Contributor

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

@Dialga
Copy link
Author

Dialga commented May 27, 2023

Is there a way for go to expand paths?

@dufferzafar
Copy link
Contributor

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.

@zyedidia
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants