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

allow dune exec -w + dune build -w running at the same time #9290

Open
mudrz opened this issue Nov 26, 2023 · 1 comment
Open

allow dune exec -w + dune build -w running at the same time #9290

mudrz opened this issue Nov 26, 2023 · 1 comment

Comments

@mudrz
Copy link

mudrz commented Nov 26, 2023

Desired Behavior

From https://discuss.ocaml.org/t/dune-exec-dune-build-running-in-the-same-project-web-server-melange/13409

A full stack OCaml project with melange has a server and a react app:

dune-project
  my_server
  my_react_app

It would be nice to start the web server with dune exec -w my_server
and build the melange project with dune build -w @my_react_app.
Currently you get a dune lock error: A running dune (pid: ...) instance has locked the build directory.

The suggestions in the topic were:

  • DUNE_CONFIG__GLOBAL_LOCK=disabled , which works but it's not documented and unstable
  • running dune exec with --no-build, which works if -w is not used, but results in the same lock error as before when -w is used

cc @Alizter

@jchavarri
Copy link
Collaborator

Potential duplicate of #7110. Related to #8114.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants