Expand description
FollowsGraph: follows edges with origin tracking.
Each Edge records whether it came from flake.nix
(EdgeOrigin::Declared) or flake.lock (EdgeOrigin::Resolved).
Paths are typed AttrPaths, so equality is structural.
Structs§
- Cycle
- A detected cycle, as the sequence of edges that close it.
- Edge
- One follows edge in the graph.
- Follows
Graph - Index of follows
Edges keyed by theirsourcepath. Construct withSelf::from_declared,Self::from_lock, orSelf::from_flakefor declared-only, resolved-only, or merged views respectively. - Stale
Lock Declaration - A declared follows whose lockfile resolution disagrees with
flake.nix. Produced byFollowsGraph::stale_lock_declarations.
Enums§
- Edge
Origin - Where an
Edgeoriginated.
Constants§
- DEFAULT_
MAX_ DEPTH - Default upper bound on graph traversal depth. The per-emission cap
(
follow.max_depthin config) is a separate, smaller knob.
Functions§
- is_
follows_ reference_ to_ parent - Whether
urlis a follows reference of the form"<parent>/<rest>". Exposed for consumers that have only a URL string and no typed target.