2 ms·
That's precisely what I'm not describing; Nix doesn't even have access to the build DAG.
by mgaunard 9mo ago
That's precisely what I'm not describing; Nix doesn't even have access to the build DAG.
- nixbuild 9mo agoPlease correct me if I'm wrong, but I assume you mean Nix doesn't have access to the build DAG that may exist inside the hermetic environment of individual Nix builds? If so, that's true, because Nix doesn't do that level of granularity unless you have a way to translate such DAGs into Nix derivations. But Nix certainly tracks dependencies between Nix packages, and have knowledge about what packages need to be rebuilt if you make a change somewhere. Some of these packages might build config files, while other may build Chromium, ie wildly different CPU+mem needs.
- mgaunard 9mo agoRight, I'm arguing this is the wrong abstraction level, and that only the build system can make correct container sizing decisions.