Skip to content

Commit 53954d5

Browse files
committed
fix: remove TMPDIR override that breaks mktemp in cargo-pgrx
Setting TMPDIR globally breaks mktemp calls in preBuildAndTest phase. Let sccache use default temp directory locations while still using /nix/var/cache/sccache for actual cache storage.
1 parent db27d57 commit 53954d5

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

nix/cargo-pgrx/buildPgrxExtension.nix

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,6 @@ let
172172
export RUSTC_WRAPPER="${sccache}/bin/sccache"
173173
export SCCACHE_DIR="/nix/var/cache/sccache"
174174
export SCCACHE_CACHE_SIZE="50G"
175-
# Create temp directory for sccache within the cache directory
176-
export TMPDIR="/nix/var/cache/sccache/tmp"
177-
mkdir -p "$TMPDIR"
178175
else
179176
echo "sccache: cache directory not accessible in sandbox (needs extra-sandbox-paths configuration), skipping"
180177
fi

0 commit comments

Comments
 (0)