From c499cb13990a14c9d9f8e7a381d9aac598a70b63 Mon Sep 17 00:00:00 2001 From: lelgenio Date: Tue, 17 Sep 2024 16:01:33 -0300 Subject: [PATCH] yarnInstallHook: fix temporary directory location Currently the directory is being created in $src/yarnInstallHook.XXXXXX Giving the directory a readable name is not particularly useful --- pkgs/build-support/node/fetch-yarn-deps/yarn-install-hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/node/fetch-yarn-deps/yarn-install-hook.sh b/pkgs/build-support/node/fetch-yarn-deps/yarn-install-hook.sh index bef51f7ef0d7..240879ad7182 100644 --- a/pkgs/build-support/node/fetch-yarn-deps/yarn-install-hook.sh +++ b/pkgs/build-support/node/fetch-yarn-deps/yarn-install-hook.sh @@ -17,7 +17,7 @@ yarnInstallHook() { --offline ) - local -r tmpDir="$(mktemp -d yarnInstallHook.XXXXXX)" + local -r tmpDir="$(mktemp -d)" # yarn pack does not work at all with bundleDependencies. # Since we are imediately unpacking, we can just remove them from package.json