Nix Hackers | 996 Members | |
| For people hacking on the Nix package manager itself | 210 Servers |
| Sender | Message | Time |
|---|---|---|
| 10 Oct 2021 | ||
| And even this works: | 16:46:46 | |
| So I think it's a bit more intricate | 16:46:51 | |
| Aha | 16:47:01 | |
| Hmm, no | 16:48:09 | |
Even referencing $out works | 16:48:13 | |
| 16:48:26 | |
| I wonder what's special about crate2nix | 16:48:44 | |
| this is happening in a primop, filterSource or path | 16:49:19 | |
| Yeah, I saw the commit message | 16:49:34 | |
| "addPath" is used by those, perhaps crate2nix uses one of them? | 16:49:38 | |
| So I'm looking for those in crate2nix | 16:49:38 | |
| Interestingly, once it has been built once using older nix it then works with newer nix | 16:50:48 | |
| Although I guess this is down to flake caching | 16:50:54 | |
| Yes | 16:51:35 | |
| Here's the trace | 16:51:45 | |
| Yeah. Caching is great??? But with a cleared cache and gc’ing the paths, should be able to remake the problem. Perhaps use “path” in the minimal example. | 16:52:24 | |
In reply to @tomberek:matrix.orgYeah with --no-eval-cache it fails successfully :D | 16:53:02 | |
| Oh, hm, interesting. I wonder why it knows that derivation name | 16:53:51 | |
Even more interesting is that it tries to add only one directory, crate | 16:55:03 | |
* Even more interesting is that it tries to add only one subdirectory, crate | 16:55:06 | |
In reply to @balsoft:balsoft.ruOk, I actually looked at the trace now | 16:56:30 | |
The derivation which we import via IFD is using cleanSourceWith | 16:57:45 | |
So, I suppose, it takes issue with the fact that we're using builtins.path on a derivation output? | 16:59:49 | |
| But then why how and why did it work before? | 17:00:06 | |
| Before the check was if the context was empty. Now it is if the path has references. So we have a path with no context, but with references? | 17:06:46 | |
| Yeah, I have confirmed that the context is indeed empty | 19:04:16 | |
| And yet there are references | 19:04:18 | |
| So it’s all working as expected via the logic in that commit. Is that the wrong logic? How can we fix it? Check if references are already allowed? | 19:45:34 | |
| I guess I'll try just not checking for references :D | 20:23:02 | |
| It seemed to work before... | 20:23:06 | |