Skip to content

Commit dc22f05

Browse files
fix: add some Linux variables to default passthrough env vars (#10959)
### Description Adds `XDG_RUNTIME_DIR` to the list of default global pass-through environment variables. This ensures that the standard XDG runtime directory is available in tasks by default. ### Testing Instructions Verify that `XDG_RUNTIME_DIR` is passed through to tasks by running a Turborepo task that prints its environment variables (e.g., `echo $XDG_RUNTIME_DIR`). CLOSES TURBO-4894 --- <a href="https://cursor.com/background-agent?bcId=bc-4fb50320-af4f-40fe-9644-4949913c8bc6"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"><img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-4fb50320-af4f-40fe-9644-4949913c8bc6"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"><img alt="Open in Web" src="https://cursor.com/open-in-web.svg"></picture></a> --------- Co-authored-by: Cursor Agent <[email protected]>
1 parent bf11989 commit dc22f05

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/turborepo-lib/src/task_hash.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,9 @@ impl<'a> TaskHasher<'a> {
444444
"LANG",
445445
"SHELL",
446446
"PWD",
447+
"XDG_RUNTIME_DIR",
448+
"XAUTHORITY",
449+
"DBUS_SESSION_BUS_ADDRESS",
447450
"CI",
448451
"NODE_OPTIONS",
449452
"COREPACK_HOME",

0 commit comments

Comments
 (0)