Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Support `env_inherit` in `workspace_root_test` (#46534)

Michael Bolinab59b78287ff
diff --git a/defs.bzl b/defs.bzl
index 7d2ea81faf..1aba4f274c 100644
--- a/defs.bzl
+++ b/defs.bzl
@@ -98,6 +98,7 @@ def _workspace_root_test_impl(ctx):
),
RunEnvironmentInfo(
environment = env,
+ inherited_environment = ctx.attr.env_inherit,
),
]
@@ -153,6 +154,7 @@ workspace_root_test = rule(
allow_files = True,
),
"env": attr.string_dict(),
+ "env_inherit": attr.string_list(),
"runfile_env": attr.label_keyed_string_dict(
cfg = "target",
),