-
Notifications
You must be signed in to change notification settings - Fork 349
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
[opam 2.1~beta2] Sandboxed opam var fail when jobs > 1(?) #4354
Comments
Ouch, I see what happens here. This file is a new cache that can get written to after loading the installed opam packages files. Do you think we should push for more use of |
Same issue happens with We should probably just silence the error for now. |
I'm still unsure why |
Well, opam keeps some internal caches in sync, and |
I don't think this is an issue. I don't think anyone use |
I don't know much about these bits in opam, but I'm curious why this is only an issue in 2.1... I understand "opam keeps some internal caches in sync, and From a user perspective, I'd have never guessed that |
Curiously, this should have been addressed #4405? |
As noted in #4429, the fix doesn't fully work. Could this issue be reopened? |
@hannesm well, computing the environment is quite involved, since it requires listing all installed packages, getting their definitions, etc. so caching this means a much welcome speedup (esp. when used in the shell prompt, emacs startup script, etc.) Now when you are in the middle of changing the state of that switch, the cache needs to be invalidated; the default in case of a missing cache is for |
@kit-ty-kate can't manage to reproduce on master ; could you give a backtrace or at least the precise error you are getting ? |
@AltGr thanks for explanation -- I'm now convinced that |
@hannesm |
I haven't seen these errors for a while. Closing. I'll reopen the issue or recreate it if I see the issue again. |
Using opam 2.1.0~beta2, I sometimes get failures when compiling
ocaml-freestanding
and/ormirage-crypto
which both useopam var
during their compilation.For instance if I compile
mirage-crypto
alone, it compiles fine:But if I compile both
ocaml-freestanding
andmirage-crypto
at the same time, opam fails during theopam var
call:The text was updated successfully, but these errors were encountered: