From bd4a68e20f3297c938154212c71a82b35a41153b Mon Sep 17 00:00:00 2001 From: FrozenPandaz Date: Wed, 13 Nov 2024 11:02:34 -0500 Subject: [PATCH] fix(core): create different dummy tasks for different parent tasks and dependency targets --- packages/nx/src/tasks-runner/create-task-graph.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/nx/src/tasks-runner/create-task-graph.ts b/packages/nx/src/tasks-runner/create-task-graph.ts index 6ad8fb58801e6..bb97f6e06eff1 100644 --- a/packages/nx/src/tasks-runner/create-task-graph.ts +++ b/packages/nx/src/tasks-runner/create-task-graph.ts @@ -287,9 +287,13 @@ export class ProcessTasks { ); } } else { + // Create a dummy task for task.target.project... which simulates if depProject had dependencyConfig.target const dummyId = this.getId( depProject.name, - task.target.target + DUMMY_TASK_TARGET, + task.target.project + + '__' + + dependencyConfig.target + + DUMMY_TASK_TARGET, undefined ); this.dependencies[task.id].push(dummyId);