Skip to content

Commit

Permalink
update graph: don't validate all paths of subgraphs
Browse files Browse the repository at this point in the history
it's important that every node in the overall graph have some
path to the head, but not for a subgraph
  • Loading branch information
ecordell committed Mar 11, 2024
1 parent 5075e4a commit c42a935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/updates/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (m *MemorySource) Subgraph(head string) (Source, error) {
}
}

return newMemorySourceFromValidatedNodes(nodeSet, edges, orderedNodes)
return &MemorySource{Nodes: nodeSet, Edges: edges, OrderedNodes: orderedNodes}, nil
}

func (m *MemorySource) validateAllNodesPathToHead() error {
Expand Down

0 comments on commit c42a935

Please sign in to comment.