1
0
mirror of https://github.com/go-task/task.git synced 2025-06-23 00:38:19 +02:00

feat: merger

This commit is contained in:
Pete Davison
2024-01-04 11:58:46 +00:00
parent 6854b4c300
commit fb9f6c20ab
6 changed files with 130 additions and 8 deletions

View File

@ -140,7 +140,7 @@ func (r *Reader) include(node Node) error {
}
// Create an edge between the Taskfiles
err = r.graph.AddEdge(node.Location(), includeNode.Location())
err = r.graph.AddEdge(node.Location(), includeNode.Location(), graph.EdgeData(include))
if errors.Is(err, graph.ErrEdgeAlreadyExists) {
edge, err := r.graph.Edge(node.Location(), includeNode.Location())
if err != nil {