-
Notifications
You must be signed in to change notification settings - Fork 470
Make --watch work for dune exec #2934
Copy link
Copy link
Closed
Labels
Description
When developing web services, it is often useful to rebuild and restart the executable on any file changes. Thus, it would be useful to be able to run dune exec foo --watch and have the program restarted on changes.
While --watch is a valid argument to dune exec (since is a common flag), afaict it is not implemented for dune exec. It seems to only be implemented for commands that go through Main.run_build_command, whereas Exec.command invokes the scheduler with Import.do_build directly, bypassing the handling for watch.
Any thoughts on how desirable this would be and how difficult it would be to implement?
Reactions are currently unavailable