Skip to content

Stack does not accept absolute directories as its --work-dir #2954

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

Closed
NorfairKing opened this issue Jan 26, 2017 · 5 comments
Closed

Stack does not accept absolute directories as its --work-dir #2954

NorfairKing opened this issue Jan 26, 2017 · 5 comments

Comments

@NorfairKing
Copy link
Contributor

Command: stack build --work-dir /home/syd/whatever/.stack-work
Stderr:
option --work-dir: InvalidRelDir "/home/syd/whatever/.stack-work"
@decentral1se
Copy link
Member

decentral1se commented Jan 26, 2017

Please see #2721 (comment). If @mgsloan is about, could you further elaborate on why this is?

We could improve the error message?

@NorfairKing
Copy link
Contributor Author

@lwm Thank you for the quick response.
If it's a known limitation, it might be nice to direct the user to an explanation of why that is.

Closing this is in the meantime.

@decentral1se
Copy link
Member

If it's a known limitation, it might be nice to direct the user to an explanation of why that is.

👍 👍 👍

@mgsloan
Copy link
Contributor

mgsloan commented Jan 31, 2017

I looked around and found this comment from @borsboom - #1178 (comment)

I've made it output more in the error message:

option --work-dir: InvalidRelDir "../test"
Note that --work-dir must be a relative child directory, because work-dirs outside of the package are not supported by Cabal.
See https://github.com/commercialhaskell/stack/issues/2954

@decentral1se
Copy link
Member

Awesome. 🍻

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