From dfc866c2da562d5e618f7df32fea090f44758448 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Fri, 13 Mar 2026 08:32:40 -0500 Subject: [PATCH] Use `mktemp -d` in `apply-ci-snapshots.sh` (#18439) https://github.com/astral-sh/uv/pull/18424#discussion_r2928468965 --- scripts/apply-ci-snapshots.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/apply-ci-snapshots.sh b/scripts/apply-ci-snapshots.sh index 680701175..457487821 100755 --- a/scripts/apply-ci-snapshots.sh +++ b/scripts/apply-ci-snapshots.sh @@ -18,8 +18,7 @@ for cmd in gh cargo-insta git; do done REPO="astral-sh/uv" -TMPDIR_BASE="${TMPDIR:-/tmp}" -DOWNLOAD_DIR="$TMPDIR_BASE/uv-pending-snapshots-$$" +DOWNLOAD_DIR="$(mktemp -d)" cleanup() { rm -rf "$DOWNLOAD_DIR"