Skip to content

Commit

Permalink
build-driver: honor TMPDIR
Browse files Browse the repository at this point in the history
Necessary for running in rootless podman, where the default /tmp has
lots of restrictions.
  • Loading branch information
zeha committed Dec 10, 2024
1 parent 69c9093 commit c033554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-driver/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def main(program_name: str, argv: list[str]) -> int:
print(f"I: {output_dir=}")

# avoid building on mounted volume
tmp_root = Path("/tmp") if True else Path(".").absolute()
tmp_root = Path(tempfile.gettempdir())
tmp_dir = Path(tempfile.mkdtemp(dir=tmp_root))
build_dir = Path(tempfile.mkdtemp(dir=tmp_root))

Expand Down

0 comments on commit c033554

Please sign in to comment.