Decide what a card shows when one file is evaluated many times #3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A card has exactly one VALUE row, which assumes a file belongs to one
evaluation. In a real configuration it does not: in natsukium/dotfiles
modules/features/ghq.nixis evaluated in eight NixOS hosts and three Darwinhosts, and the merged value of
cfg.enablediffers between them.This is a design question, not a missing function. Two answers worth weighing:
document; it silently shows one host's answer as if it were the answer.
makes the card a table — which is most of what makes a configuration hard to
read in the first place, so it may be worth it.
A decision here is a prerequisite for flake-parts support, since a flake-parts
repository is exactly the shape that produces many evaluations of one file.
Decision: evaluate every configuration that includes the file, and group the card by value rather than by host.
true— 8 hosts /false— nixos-foo, darwin-bar). Rows grow with the number of distinct values, not the number of hosts, and in practice that is one or two.definitionslikewise: the union of contributing files, with host names only where they differ.type,defaultanddescriptiondo not vary between evaluations and stay single rows.No reference evaluation is chosen, so no host's answer is presented as the answer, and the page stays a document rather than a table. Cost is bounded because each host's
optionsis lazy and only indexed options are forced.