From a1e73704836310d8070ccaab008a50bdaf322a6e Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Thu, 13 Feb 2025 14:01:39 +0100 Subject: [PATCH] nixpkgs-review: ensure cache directory is an absolute path --- nixpkgs_review/builddir.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixpkgs_review/builddir.py b/nixpkgs_review/builddir.py index 56e26b13..a07576d8 100644 --- a/nixpkgs_review/builddir.py +++ b/nixpkgs_review/builddir.py @@ -39,6 +39,9 @@ def create_cache_directory(name: str) -> Union[Path, "TemporaryDirectory[str]"]: xdg_cache = Path(home).joinpath(".cache") + # There is no guarantee that environment variables are set to absolute paths. + xdg_cache = xdg_cache.absolute() + counter = 0 while True: try: