ocaml / dune

A composable build system for OCaml.
https://dune.build/
MIT License
1.63k stars 401 forks source link

Cache more things in package management use-cases #11003

Open ElectreAAS opened 2 weeks ago

ElectreAAS commented 2 weeks ago

We recently enabled the cache by default, although with a relatively small set of rules that can actually be cached. We'd like to cache as much as possible, especially regarding costly downloads and compilation of dependencies.

A few options have been discussed already (may or may not be mutually exclusive):

ElectreAAS commented 2 weeks ago

cc @leostera @Leonidas-from-XIV @rgrinberg

rgrinberg commented 1 week ago

Yeah, that sounds fine. You can experiment with always caching the OCaml rules as well. Those are defined within dune itself, so they should be pretty safe to cache.