lila icon indicating copy to clipboard operation
lila copied to clipboard

rebuilder: more clever rebuild if output is not in cache

Open JulienMalka opened this issue 1 year ago • 2 comments

We should either find a way not to use nix-build --check whose semantics are dodgy, or wrap it inside a logic that does different thing if output is not in cache

JulienMalka avatar Nov 02 '24 12:11 JulienMalka

by 'dodgy semantics' do you mean the fact that it'll only call the diff hook for the first failing result (#34), or something else?

Indeed it might be interesting to do something different here (or improve the semantics upstream ;) )

raboof avatar Nov 02 '24 13:11 raboof

By dodgy semantics, I mean that there is no way in Nix to simply rebuild locally a derivation, without asking Nix to check the results. This creates problem when the derivation is not in a cache for example, and makes it also not really idempotent in that case.

In our instance, I think we should just check if the derivation the rebuilder wants to build is in the cache or not / present locally or not and adapt our behavior.

JulienMalka avatar Nov 03 '24 10:11 JulienMalka