Nix Hackers | 916 Members | |
| For people hacking on the Nix package manager itself | 191 Servers |
| Sender | Message | Time |
|---|---|---|
| 17 Feb 2025 | ||
| iirc it was changed to be more name based, but I don't know the exact details. What you're proposing sounds ok to me | 15:02:32 | |
| I guess I'll open a pr sometime then | 15:04:31 | |
| 21:38:22 | ||
| 18 Feb 2025 | ||
| 06:07:36 | ||
| 06:08:27 | ||
| Would this be easy to fix? https://github.com/NixOS/nix/issues/2735 | 06:22:17 | |
| 07:08:24 | ||
In reply to @woobilicious:matrix.orgyes. .addTrace on the exception being thrown when the io fails | 07:25:13 | |
| 08:09:02 | ||
| jade_: thanks, I could have a look at opening a PR, but I'm not really an expert in C++ so might take me a while to figure out how to write a patch. | 09:26:17 | |
| 13:04:00 | ||
| hello! would someone know if there ever was a bug in the nix daemon where a package with the allowSubstitutes bit disabled could in fact, be substituted? I'm seeing this in Guix, which uses the Nix daemon from ~2012 (more context on the problem: https://issues.guix.gnu.org/41602) | 13:06:55 | |
| good that you have that on the radar. Was going to ask about that | 14:08:09 | |
| 15:21:41 | ||
In reply to @woobilicious:matrix.orghttps://gerrit.lix.systems/c/lix/+/2578/2 this is the vague shape of the patch, fresh in mind because i just wrote one yesterday for something else | 17:03:15 | |
In reply to @apteryx:matrix.org i am so sorry. um. looking at the modernized nix daemon's substitution loop etc makes me want to cry at the best of times and a nix daemon from 2012 is going to be no better. i would suggest the debug logs actually, assuming they existed at the time; they do tell you what the state machine did. also recommended: --store $PWD/store so you can trivially wipe it between tries and not need to debug the daemon at all by not having one involved | 17:07:46 | |
In reply to @jade_:matrix.orgthanks Jade! | 17:11:43 | |
| oh I guess I haven't clarified that I am involved in this lol | 17:12:10 | |
| also recommended --max-jobs 0 | 17:12:24 | |
| the expected behaviour in such a case is that it will actually fail without the very modern --always-allow-substitutes set, which has an egregiously bad error message also | 17:13:09 | |
| * | 17:13:28 | |
| if that's not what happens, your daemon has diverged from the modern ones | 17:14:02 | |
| also if you want to not deal with an evaluator you can probably nix-copy-closure the drv files into $PWD/store before beginning the test substitution | 17:14:47 | |
| and https://github.com/NixOS/nix/pull/12503, to be upstreamed into nixpkgs too | 18:42:27 | |
mra: fwiw our side of the ecosystem is on the way towards deprecating allowSubstitutes = false; (hence --always-allow-substitutes etc.) as not really useful in practice | 22:40:38 | |
| not sure whether Guix would have an easier time phasing it out than us, but if so it might be worth considering rather than fixing | 22:41:15 | |
| (I thought Guix had rewritten the daemon, 2012 nix-daemon sounds scary…) | 22:41:45 | |
| (there's been a good few CVEs since then) | 22:41:46 | |
| Why is it not really useful? | 23:19:32 | |
| there's a bunch of discussion in https://github.com/NixOS/nix/issues/4442 | 23:20:23 | |