Files
lix/doc/manual/rl-next/fetchTree-presence.md
T
Jade LovelaceandJade Lovelace fcea7379d3 fetchTree: make invisible when not available, sorta document
Documenting fetchTree is an exercise in frustration because of the sheer
amount of stringly typed everything in it. I do not know which fields
exist without reading the entirety of libfetchers. However, we can write
something slightly perfunctory but at least perhaps somewhat helpful
documentation-wise.

Fixes: https://git.lix.systems/lix-project/lix/issues/609
Change-Id: I991391b53fcd69172dbc7efb9d384e62bc847b91
2025-03-18 11:34:28 -07:00

796 B

synopsis, cls, category, credits
synopsis cls category credits
`builtins.fetchTree` is no longer visible in `builtins` when flakes are disabled
2399
Fixes jade

builtins.fetchTree is the foundation of flake inputs and flake lock files, but is not fully specified in behaviour, which leads to regressions, behaviour differences with CppNix, and other unfun times. It's gated behind the flakes experimental feature, but prior to now, would throw an uncatchable error at runtime when used without the flakes feature enabled. Now it's like other builtins which are experimental feature gated, where it is not visible without the relevant feature enabled.

This fixes a bug in using Eelco Dolstra's version of flake-compat on Lix (and a divergence with CppNix): https://github.com/edolstra/flake-compat/issues/66