dune icon indicating copy to clipboard operation
dune copied to clipboard

Relax global lock when using `describe` subcommand

Open jchavarri opened this issue 1 year ago • 1 comments

Currently if one runs dune build -w in one terminal and tries to run dune describe in another, the latter fails:

$ dune describe
Error: A running dune (pid: 586836) instance has locked the build directory.
If this is not the case, please delete _build/.lock

I understand describe is a "read-only" subcommand, so I wonder if the restrictions / limitations that forced the introduction of the global lock could be relaxed in this case?

Maybe other subcommands that don't write in _build could see this limitation lifted (e.g. dune fmt)

jchavarri avatar Apr 17 '24 08:04 jchavarri

I understand describe is a "read-only" subcommand,

dune describe pp is not read-only, at least, since it builds the ppx pipeline and preprocesses the files.

anmonteiro avatar Apr 17 '24 08:04 anmonteiro