Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build-driver: honor TMPDIR #198

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
build-driver: honor TMPDIR
Necessary for running in rootless podman, where the default /tmp has
lots of restrictions.
  • Loading branch information
zeha committed Dec 10, 2024
commit c03355446d1bcad93a8597d152d6bf80d5cb6112
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
Loading