diff options
| author | tv <tv@krebsco.de> | 2026-11-12 20:25:15 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-13 03:24:31 +0100 |
| commit | bde412b675588ec14bf069f7e244b6e34eb5fdff (patch) | |
| tree | f6c9f70e58b80d5dd02a6a39dee98ea55344fa6b /tests/jq.sh | |
| parent | 32eeb3aeda1519acbc15c120693aebc95cbd5c38 (diff) | |
populate: draw inputs below drawn inputs at any depth
An input below an input that gets drawn from a source is an input of the
flake in that source. If that flake draws the input on the way from
another source itself, the path goes on in the flake of that one, and
so forth. Populate follows the path one source deep only, so
x.inputs.dep = { follows = "b"; inputs.p.inputs.z.follows = "c"; } has
no effect if b draws p from a source: Nix ignores overrides below an
input that follows another one, without warning.
Populate follows such paths through the sources, for generated flakes as
well as for rewritten lock files. Where the way leads through a
generated flake, it names the generated flake's inputs, which are its
source and the sources that one draws from. So a source with a rewritten
lock file can also draw an input below one it draws from a source with a
generated flake.
Edge cases cover an input two sources deep, both ways of drawing inputs,
and a source with a rewritten lock file drawing from one with a generated
flake.
Diffstat (limited to 'tests/jq.sh')
0 files changed, 0 insertions, 0 deletions
