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

local-bin-path doesn't accept tilde syntax #2161

Closed
unode opened this issue May 18, 2016 · 3 comments
Closed

local-bin-path doesn't accept tilde syntax #2161

unode opened this issue May 18, 2016 · 3 comments

Comments

@unode
Copy link

unode commented May 18, 2016

I'm not sure if I'm doing something wrong but if I add:

{
    local-bin-path: ~/bin
}

to my config.yaml file, stack path complains that:

No directory could be located matching the supplied path: ~/bin

Is there any other way to refer to this location with a relative path or something like $HOME?

@cheecheeo
Copy link

@unode this works for me:

{
    local-bin-path: bin
}

@unode
Copy link
Author

unode commented May 24, 2016

@cheecheeo it doesn't work for me.

If I set it up like you mentioned it becomes relative to the current path.
It only works if I'm on ~/ when I run stack install which is hardly ever.

@mgsloan mgsloan added this to the P3: Optional milestone May 25, 2016
@sjakobi
Copy link
Member

sjakobi commented Jul 16, 2016

I think this issue would already be solved with #1375.

The issue with tildes (~) is that they are AFAIK legal filenames in their own right, so it's never clear whether ~/x refers to $HOME/x or $PWD/~/x.

I'm closing this in favor of #1375 but feel free to reopen this if you would like to discuss this further.

@sjakobi sjakobi closed this as completed Jul 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants