From 8d0bb7ba9e517eecddf9c10f6de862569fecb64d Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Mon, 18 Dec 2023 14:38:34 +0530 Subject: [PATCH] fix: modify permissions of all files to read (#18214) `react-native-reanimated` generates write protected files during build time which are problematic because we copy over `node_modules` from `nix` store and when replacing them with new node modules we are manually asked to confirm this overwrite. This used to happen before with `.cxx` files but now it also happens with `.so` files. This commit fixes those permissions. partially fixes #18211 --- nix/scripts/node_modules.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/scripts/node_modules.sh b/nix/scripts/node_modules.sh index edfa999a96..0ac2e4d0b0 100755 --- a/nix/scripts/node_modules.sh +++ b/nix/scripts/node_modules.sh @@ -46,7 +46,7 @@ copyNodeModules() { # WARNING: We can't de-reference .bin symlinks cp -Rf ${src}/node_modules/.bin/. "${tmp}/.bin/" # Cmake called by react-native-reanimated 3.3.0 during build creates read-only temporary files. - chmod -R u+w node_modules/react-native-reanimated/android/.cxx -f || true + chmod -R u+w node_modules/react-native-reanimated/android/ -f || true rm -r "${dst}" mv -f "${tmp}" "${dst}" }