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

running ghci in a docker project doesn't load my ~/.ghci #2125

Open
radix opened this issue May 11, 2016 · 1 comment
Open

running ghci in a docker project doesn't load my ~/.ghci #2125

radix opened this issue May 11, 2016 · 1 comment

Comments

@radix
Copy link
Contributor

radix commented May 11, 2016

I have a ~/.ghci that sets my prompt, and it doesn't get loaded when I run stack --docker ghci

I realize that my entire filesystem doesn't get mounted into the docker image, and that there are good isolation benefits for not mounting my entire home directory -- however, perhaps the ghci file could be copied in as a special case?

@mgsloan
Copy link
Contributor

mgsloan commented May 12, 2016

Actually, a change in the last version was to add $HOME and $TMPDIR to the container - #1949

The issue is probably that it is not located in the container user's home folder (the stack user). So, we'd need to add some logic to stack ghci which knows to pass in a -ghci-script= argument with the user's .ghci.

Should be a mostly straightforward change, PRs appreciated :D

The main tricky bit is plumbing the info that we're in a docker container and where the home folder is. Perhaps the info is already available in the Reader.

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