Repository navigation
v0.55.0
dag gains the two operations its one consumer was hand-rolling beside it,
and the one-function registry package folds into uniq.
Added
dag.TopoSortanddag.TopoSortFunc: Kahn topological sort with a
deterministic tie-break, so the order depends on the input alone. On a
cycle the result holds the nodes that could still be ordered and the
error isdag.ErrCycle.dag.LongestPath: the number of nodes on the longest path from a start
node, memoised, for critical-path scoring.uniq.Merge: base followed by extra with every key unique, or an error
wrappinguniq.ErrDuplicatethat names the repeated key.
Removed
registry. Replaceregistry.MergeUnique(kind, builtins, user, slugOf, mark)
withuniq.Merge(builtins, user, slugOf). Applymarkto a clone of
builtinsbefore the call and wrap the error withkindat the call site.