ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.24k stars 357 forks source link

too many system calls!? (cwd evaluated during update) #3171

Open hannesm opened 6 years ago

hannesm commented 6 years ago

the scenario I had was as follows (using opam 1.2.2):

I was surprised that during the update (while opam was downloading), opam complained about "no such file or directory" -- which I then discovered was related to the current working directory which got lost.

--> why does opam need to investigate its cwd (and check existance) while it is downloading things to ~/.opam?

AltGr commented 6 years ago

Probably not the best approach, but the reason boils down to this: