mirror of
https://github.com/go-task/task.git
synced 2026-07-02 08:58:41 +00:00
feat: taskfile mutex for adding edge data
This commit is contained in:
@@ -140,6 +140,8 @@ func (r *Reader) include(node Node) error {
|
||||
}
|
||||
|
||||
// Create an edge between the Taskfiles
|
||||
r.graph.Lock()
|
||||
defer r.graph.Unlock()
|
||||
edge, err := r.graph.Edge(node.Location(), includeNode.Location())
|
||||
if err == graph.ErrEdgeNotFound {
|
||||
// If the edge doesn't exist, create it
|
||||
|
||||
Reference in New Issue
Block a user