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

Enable read/write access to dune's cache directory when sandboxing. #4012

Closed
mefyl opened this issue Oct 15, 2019 · 1 comment · Fixed by #4019
Closed

Enable read/write access to dune's cache directory when sandboxing. #4012

mefyl opened this issue Oct 15, 2019 · 1 comment · Fixed by #4019
Milestone

Comments

@mefyl
Copy link

mefyl commented Oct 15, 2019

Currently Opam's sandboxing prevent dune caching mechanism from working, as sandboxing removes write access to most of the filesystem.

The currently proposed solution would be to simply add the cache directory to the list of rw directiories in sandbox.sh. The value on Unix and OSX would be $XDG_CACHE_HOME/dune if set, $HOME/.cache/dune otherwise. Windows would be $AppData/Local Settings/Cache, although I'm not sure sandboxing works there.

@rjbou rjbou added this to the 2.0.6 milestone Oct 29, 2019
@rjbou
Copy link
Collaborator

rjbou commented Oct 29, 2019

Thanks for reporting!

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

Successfully merging a pull request may close this issue.

2 participants