From 95ee0b5476121b4437a26d167854b9d76e923c2f Mon Sep 17 00:00:00 2001 From: tknickman Date: Mon, 12 Dec 2022 18:19:06 -0500 Subject: [PATCH] fix(core): fix turbo engine task builder introduced in https://github.com/vercel/turbo/pull/2546/files --- cli/internal/core/engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/internal/core/engine.go b/cli/internal/core/engine.go index 548a67472db2e..7369e26d33127 100644 --- a/cli/internal/core/engine.go +++ b/cli/internal/core/engine.go @@ -260,7 +260,7 @@ func (e *Engine) AddDep(fromTaskID string, toTaskID string) error { return fmt.Errorf("found reference to unknown package: %v in task %v", fromPkg, fromTaskID) } - if _, ok := e.PackageTaskDeps[fromTaskID]; !ok { + if _, ok := e.PackageTaskDeps[toTaskID]; !ok { e.PackageTaskDeps[toTaskID] = []string{} }