-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Realisations use regular drv paths again #12464
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
base: master
Are you sure you want to change the base?
Conversation
6f610de to
be5cfe4
Compare
be5cfe4 to
7b01c8b
Compare
7b01c8b to
546d826
Compare
a031df7 to
4f9435b
Compare
4f9435b to
46fde9b
Compare
46fde9b to
d150215
Compare
9f3fdcf to
c9ac039
Compare
e0eb7f7 to
aa43f8d
Compare
aa43f8d to
043eed8
Compare
c4d6eb8 to
5b3977f
Compare
5b3977f to
170b0bf
Compare
895e576 to
7c90246
Compare
|
🎉 All dependencies have been resolved ! |
1 similar comment
|
🎉 All dependencies have been resolved ! |
While working on NixOS#12464, I realized this method was not correct in this case. With the current binary cache format, it is harmless, since we don't create arbitrary directories, but with my change, we started to. Regardless of whether we need it or not, I think it is better if the function just does the right thing.
While working on NixOS#12464, I realized this method was not correct in this case. With the current binary cache format, it is harmless, since we don't create arbitrary directories, but with my change, we started to. Regardless of whether we need it or not, I think it is better if the function just does the right thing.
0170fb3 to
4be3aea
Compare
|
I applied an earlier version of this PR https://github.com/Mic92/nix-1/tree/broken-main |
|
when I applied this pr, After dropping the patches from my fork, it does again. This happened with all nix versions I tested btw, while the faulty version was running as the nix-daemon. |
4be3aea to
4cf2e4f
Compare
Extract the logic for determining whether a derivation should be resolved before building into a dedicated method. Then use that to not resolve unnecessarily in `nix-shell`.
Fix NixOS#11897 As described in the issue, this makes for a simpler and much more intuitive notion of a realisation key. This is better for pedagogy, and interoperability between more tools. The way the issue was written was that we would switch to only having shallow realisations first, and then do this. But going to only shallow realisations is more complex change, and it turns out we weren't even testing for the benefits that derivation hashes (modulo FODs) provided in the deep realisation case, so I now just want to do this first. Doing this gets the binary cache data structures in order, which will unblock the Hydra fixed-output-derivation tracking work. I don't want to delay that work while I figure out the changes needed for shallow-realisations only. This reverts commit bab1cda.
4cf2e4f to
d9e2cd8
Compare
Motivation
Fix #11897
As described in the issue, this makes for a simpler and much more intuitive notion of a realisation key. This is better for pedagogy, and interoperability between more tools.
Context
The way the issue was written was that we would switch to only having shallow realisations first, and then do this. But going to only shallow realisations is more complex change, and it turns out we weren't even testing for the benefits that derivation hashes (modulo FODs) provided in the deep realisation case, so I now just want to do this first.
Doing this gets the binary cache data structures in order, which will unblock the Hydra fixed-output-derivation tracking work. I don't want to delay that work while I figure out the changes needed for shallow-realisations only.
Revert "Use the hash modulo in the derivation outputs"
This reverts commit bab1cda.
Depends on #14247
Depends on #14257
Depends on #14648
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.