-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Excess rebuilding: fileset library undermined by git commit hashes #10379
Comments
I have hard time parsing this. Do you mean that the |
Basically all unreleased software faces this problem, so do we want to solve this just for Nix (and put a |
Yes
Don't think it is anything that complex thankfully. Just our choice of how @roberth Totally agree there is a larger problem, and ideally we do finally solve that once and for all (and then maybe drop the name parth from store paths because the other metadata solution is better). But I suppose I opened this issue wondering if we could find something quick-and-dirty for Nix itself in the meantime. Can easily be convinced either way, though. |
If we split out the libraries into separate derivations, and not put a |
Currently the version ends up in the |
Untangle seems to overstate it 🚀 Btw I did prove out #8543 for splitting libraries, but I'd prefer something more principled, and something that uses the meson work. |
As discussed in our meeting, we should use a simplified version for the libraries without the date or commit hash. This will make rebuilding a lot faster in many cases. Progress on NixOS#10379
As discussed in our meeting, we should use a simplified version for the libraries without the date or commit hash. This will make rebuilding a lot faster in many cases. Progress on NixOS#10379 Co-Authored-By: Robert Hensing <[email protected]>
It is very nice that we use @infinisil's
fileset
work to filter sources. Unfortunately, this only helps between "revision-dirty" builds. Otherwise, we don't get much benefit because git-commit-hash-basedversion
s still change when only excluded files changed.(This especially annoyed me when testing the perl bindings full build, e.g. for #10378)
Not sure what we should do instead. Git (or nar) hashes of post-filtered files are an option, but those will not be immediately obvious to people. Another option is trying to bake in the regular commit hash as a final post step with something like
gettext
.CC @roberth @fricklerhandwerk
The text was updated successfully, but these errors were encountered: