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

datadir for stack installed executables points to project folder #1829

Closed
lspitzner opened this issue Feb 23, 2016 · 1 comment
Closed

datadir for stack installed executables points to project folder #1829

lspitzner opened this issue Feb 23, 2016 · 1 comment

Comments

@lspitzner
Copy link

Steps to reproduce:

> mkdir temp-foo
> cd temp-foo
> cabal get $SOME_PACKAGE_WITH_DATA_DIR
> cd "$SOME_PACKAGE_WITH_DATA_DIR-$SOME_VERSION"
> stack init
> stack install
> cd ../..
> rm -rf temp-foo
> ~/.local/bin/$SOME_PACKAGE_WITH_DATA_DIR
*accesses temp-foo/../data/...*, breaking if stuff is not there anymore.

Expected behaviour: Either

  1. the executable in .local/bin keeps working after removing temp-foo (by properly setting the data-dir to .local/share or something; or
  2. the executable in .local/bin is just a link to somewhere inside temp-foo, so it completely stops working.

Actual:

The executable is still there, but breaks when/if it accesses its data-dir. Also, it may re-create the temp-foo directory if it uses some mkdir -p, which is annoying.

$ stack --version
Version 0.1.10.1 x86_64

[Edit:] Reproduced with

Version 1.0.4.1 x86_64
@mgsloan
Copy link
Contributor

mgsloan commented Feb 24, 2016

Yes, this would be good. We're tracking this feature with this issue: #848

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

2 participants