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

Option to refresh sandbox.sh file #4406

Open
ChrisVine opened this issue Oct 28, 2020 · 1 comment · May be fixed by #4414
Open

Option to refresh sandbox.sh file #4406

ChrisVine opened this issue Oct 28, 2020 · 1 comment · May be fixed by #4414

Comments

@ChrisVine
Copy link

opam upgrade recently started failing for me. The proximate cause of this seems to have been ccache moving its default cache
directory from $HOME/.ccache to $HOME/.cache/ccache in its latest version (version 4.0), coupled with the sandbox.sh file installed by opam being out of date. This caused the sandboxing issue referred to here to arise.

In the end I resolved this by copying src/state/shellscripts/bwrap.sh from the latest opam tarball to $HOME/.opam/opam-init/hooks/sandbox.sh by hand: moving sandbox.sh and running opam init again does not appear to cause it to be refreshed automatically.

I suggest opam init should have an option available to it to refresh sandbox.sh. Better error reporting where a sandboxing error like this occurs would also be helpful, so that the user can more easily diagnose the cause.

@rjbou
Copy link
Collaborator

rjbou commented Oct 28, 2020

Related to #4361

@rjbou rjbou added this to the 2.1.0~beta3 milestone Nov 2, 2020
@rjbou rjbou linked a pull request Nov 4, 2020 that will close this issue
@rjbou rjbou linked a pull request Dec 7, 2020 that will close this issue
@rjbou rjbou modified the milestones: 2.1.0~beta4, 2.1.0~beta5 Jan 7, 2021
@rjbou rjbou removed this from the 2.1.0~rc milestone Feb 26, 2021
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