From 334d5193ba6713c766067db78f3e39ddb3b59ba7 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 24 Dec 2024 11:48:20 -0600 Subject: [PATCH] yarnConfigHook: fix darwin permissions --- pkgs/build-support/node/fetch-yarn-deps/yarn-config-hook.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/build-support/node/fetch-yarn-deps/yarn-config-hook.sh b/pkgs/build-support/node/fetch-yarn-deps/yarn-config-hook.sh index 7d8c70d270082b..39dd99911fd030 100644 --- a/pkgs/build-support/node/fetch-yarn-deps/yarn-config-hook.sh +++ b/pkgs/build-support/node/fetch-yarn-deps/yarn-config-hook.sh @@ -1,9 +1,8 @@ -yarnConfigHook(){ +yarnConfigHook() { echo "Executing yarnConfigHook" # Use a constant HOME directory - mkdir -p /tmp/home - export HOME=/tmp/home + export HOME=$(mktemp -d --tmpdir /tmp/home) if [[ -n "$yarnOfflineCache" ]]; then offlineCache="$yarnOfflineCache" fi