| 1 Dec 2025 |
niko ⚡️ | In reply to @piegames:flausch.social Well that's already not the case unfortunately https://git.lix.systems/lix-project/lix/src/branch/main/lix/libexpr/eval.cc#L1831 Oh I know, I’m very much not a fan of auto-calling in the first place, but even my bias aside it has a bunch of sharp edges besides e.g. the blatant bug with functors | 10:08:17 |
piegames | Honestly auto-calling should be ripped out and replaced with some dedicated parametrized top-level entry point mechanism | 10:19:33 |
piegames | And functors, sigh | 10:19:48 |
helle (just a stray cat girl) | auto-calling is scary stuff imo | 10:28:24 |
piegames | Unfortunately I'm a pretty big user of it :D | 11:09:11 |
piegames | It's great when you're using Nix as a data pipeline scripting language | 11:09:30 |
raitobezarius | nixpkgs and normal package uses a lot of autocalls as well | 11:32:14 |
raitobezarius | but simple shallow autocalls usually | 11:32:22 |
raitobezarius | it would make sense for flaker maybe to support measuring the depthness of the autocalls | 11:32:30 |
raitobezarius | for non-flakes entrypoints i suppose | 11:32:35 |
piegames | Can this be done with static analysis? | 11:33:36 |
raitobezarius | i don't believe so | 11:33:44 |
piegames | Can you give some examples? | 11:33:58 |
raitobezarius | we must hook some reporting facility in lix that you can exploit | 11:33:53 |
raitobezarius | old-style tests entrypoints | 11:34:08 |
raitobezarius | in nixpkgs | 11:34:13 |
piegames | Because without a standardized way to enumerate all entry points, finding usage through Flaker will be tricky | 11:34:26 |
raitobezarius | nixos/tests/zfs.nix | 11:34:28 |
raitobezarius | a ultra common pattern is | 11:34:32 |
raitobezarius | { x ? a, y ? b, c ? d }: ... | 11:34:41 |
raitobezarius | this gets autocalled all the time | 11:34:45 |
raitobezarius | many default.nix starts with { pkgs ? import <nixpkgs> { } }: ... | 11:34:54 |
piegames | I know that pattern, but where does that get autocalled? | 11:36:44 |
piegames | I've seen it manually called at times and that's it | 11:36:54 |
piegames | I haven't seen much autocalling entry points in the wild | 11:37:09 |
raitobezarius | well | 11:44:43 |
raitobezarius | if you do | 11:44:44 |
raitobezarius | nix-build -A xyz | 11:44:46 |
raitobezarius | you are doing autocalling? | 11:44:49 |
raitobezarius | if you do nix-build nixos/tests/zfs.nix | 11:45:01 |