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

Relax global lock when using describe subcommand #10430

Open
jchavarri opened this issue Apr 17, 2024 · 1 comment
Open

Relax global lock when using describe subcommand #10430

jchavarri opened this issue Apr 17, 2024 · 1 comment

Comments

@jchavarri
Copy link
Collaborator

jchavarri commented Apr 17, 2024

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)

@anmonteiro
Copy link
Collaborator

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.

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

No branches or pull requests

2 participants