-
Notifications
You must be signed in to change notification settings - Fork 119
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
Use file-watching mechanism #570
Comments
Yes/no/maybe... Yes, I'd love to include something like that. No, I don't want to incur a file watch dependency because it complicates efforts such as the GHC Hadrian work. Maybe, because if we do, I want it to be a lot smarter and "know" what files Shake really cares about. Thoughts about how we solve the "No"? |
Oh, interesting. Sounds like this feature belongs in some higher-level package built on And re: "maybe" - do you mean that |
Yep, seems like a higher-level package is the way to go. It could also provide profiling without having the source files available, the TemplateHaskell snippet in https://hackage.haskell.org/package/shake-0.16.3/docs/Development-Shake.html#v:getHashedShakeVersion etc. I think shakeLiveFiles is a crude approximation, and it gets written to a file, so I think you want an API entry point rather than a batch mode as we have now. |
Any progress on that? I would love to use watch mode in my builds. |
Progress is being made. There is Development.Shake.Database a few weeks ago with shakeLiveFilesDatabase, so you now probably have enough that you can write something robust on the outside. If someone does write |
Merging this issue with #580. Possibly makes sense to provide integration with Watchman as the file watching mechanism: https://facebook.github.io/watchman/ |
Why watchman instead of plain ol' |
@srid I'm not fussed either way. I suspect whoever does the work will end up setting the direction here. I suspect both are workable solutions. |
I'm implementing file watching in #839 |
I managed to get a
shake watch
working with this:It works okay, but I really don't want to keep writing this code :)
Should/could something like this live inside shake?
shake --watch
?The text was updated successfully, but these errors were encountered: