Open Profpatsch opened 3 years ago
Maybe there could even be a way to block the build system until the rebuild is finished? That would trade speed for correctness, but if you e.g. changed one of your code generation tools you really want to wait on it to be available.
When you use e.g. a Makefile for building your project’s dependencies, and you change your
shell.nix
, you’d want your build system to pick up the change.There is no good synchronous solution here I think, since you can either
nix-shell
and have the overheadI feel like the last point is pretty easy to implement, you could tell lorri to touch e.g.
.build/latest-lorri-eval
and then depend on it in your makefile. It is racy of course, but better than if the build system never notices that something changed.