-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RFC] Allow dune to treat targets opaquely.
Summary: Some targets will be generated by external build commands (such as static resource managers, documentation generators, etc). Often, those resources must be generated into a directory and the external tool will manage the contents of that directory. Dune can properly determine when to invoke the external build tool to regenerate that directory content, and the external build tool will be responsible for doing so. In this sense, Dune can treat directories generated by build commands as "opaque" resources, almost as if the directory was the tar equivalent of the directory. This diff attempts to implement this, but I'd like some feedback. There is one issue with this implementation which I could use some help resolving. Even if the mtime does not change for the file, Dune decides to regenerate the target - merely because it is a directory, and I cannot find the place in Dune where it decides to do that.
- Loading branch information
Showing
2 changed files
with
37 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters