enola-dev / enola

Enola 🕵🏾‍♀️ Holmes was an SRE.
https://docs.enola.dev/
Apache License 2.0
13 stars 5 forks source link

Improve Start-Up Time #performance of ./enola dev launch script further, by using (something like) hashdir to skip Bazel for rebuild check #753

Closed vorburger closed 3 days ago

vorburger commented 3 days ago

Follow-up to #748:

Use https://pypi.org/project/hashdir/ (or https://github.com/stiction/hash-dir = https://crates.io/crates/hash-dir/0.2.1; or https://ultimateanu.github.io/hashdir/, at 30 MB, in .NET; urgh) to hash java/** (and models/**, probably) and only relaunch bazel in the ./enola dev launch script if sources have actually changed.

Or using any other similar tool like that (but NB cksum or sha384sum et al won't be useful because they hash single files, not directory).