Skip to main content

Module graph

Module graph 

Source
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.
FollowsGraph
Index of follows Edges keyed by their source path. Construct with Self::from_declared, Self::from_lock, or Self::from_flake for declared-only, resolved-only, or merged views respectively.
StaleLockDeclaration
A declared follows whose lockfile resolution disagrees with flake.nix. Produced by FollowsGraph::stale_lock_declarations.

Enums§

EdgeOrigin
Where an Edge originated.

Constants§

DEFAULT_MAX_DEPTH
Default upper bound on graph traversal depth. The per-emission cap (follow.max_depth in config) is a separate, smaller knob.

Functions§

is_follows_reference_to_parent
Whether url is a follows reference of the form "<parent>/<rest>". Exposed for consumers that have only a URL string and no typed target.