diff --git a/crates/turborepo-lib/src/task_graph/visitor.rs b/crates/turborepo-lib/src/task_graph/visitor.rs index 3af701e111b62..e34f35548c277 100644 --- a/crates/turborepo-lib/src/task_graph/visitor.rs +++ b/crates/turborepo-lib/src/task_graph/visitor.rs @@ -912,13 +912,14 @@ impl ExecContext { cmd.envs(self.execution_env.iter()); // Always last to make sure it overwrites any user configured env var. cmd.env("TURBO_HASH", &self.task_hash); - // enable task access tracing // Allow downstream tools to detect if the task is being ran with TUI if self.experimental_ui { cmd.env("TURBO_IS_TUI", "true"); } + // enable task access tracing + // set the trace file env var - frameworks that support this can use it to // write out a trace file that we will use to automatically cache the task if self.task_access.is_enabled() {