Skip to content
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

rebuilder: more clever rebuild if output is not in cache #48

Open
JulienMalka opened this issue Nov 2, 2024 · 2 comments
Open

rebuilder: more clever rebuild if output is not in cache #48

JulienMalka opened this issue Nov 2, 2024 · 2 comments

Comments

@JulienMalka
Copy link
Owner

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

@raboof
Copy link
Collaborator

raboof commented Nov 2, 2024

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 ;) )

@JulienMalka
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants