Skip to content

Commit 6b4a5f1

Browse files
Update flow/scripts/run_command.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent d2b66c6 commit 6b4a5f1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎flow/scripts/run_command.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def run(argv: list[str] | None = None) -> int:
8686
log_file = open(args.log, "a" if args.append else "w")
8787

8888
wall_start = time.monotonic()
89-
env = {k: v for k, v in os.environ.items() if k not in ("RUNFILES_DIR", "RUNFILES_MANIFEST_FILE")}
89+
# Strip Bazel runfiles variables to prevent subprocesses from using the wrong runfiles tree.
90+
env = {k: v for k, v in os.environ.items() if k not in ("RUNFILES_DIR", "RUNFILES_MANIFEST_FILE", "RUNFILES_MANIFEST_ONLY")}
9091
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env)
9192

9293
try:

0 commit comments

Comments
 (0)